1,mysql 数据库,user表设置,
update user set host = '%' where user ='root';
flush privilesges;
2,/etc/mysql/my.cnf
bind-address = 0.0.0.0
3:grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
4,flush privileges;
1,mysql 数据库,user表设置,
update user set host = '%' where user ='root';
flush privilesges;
2,/etc/mysql/my.cnf
bind-address = 0.0.0.0
3:grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
4,flush privileges;
转载于:https://my.oschina.net/u/856051/blog/382622