-
进入mysql:
mysql -u root -p -
使用mysql数据库
use mysql; -
创建远程用户
grant all privileges on . to '用户名'@'%' identified by '密码' with grant option; -
重启mysql
service mysqld restart
进入mysql:
mysql -u root -p
使用mysql数据库
use mysql;
创建远程用户
grant all privileges on . to '用户名'@'%' identified by '密码' with grant option;
重启mysql
service mysqld restart