Fork me on GitHub

设置MYSQL允许用IP访问

 

mysql>use mysql;


mysql>update user set host = '%'  where user ='root';


mysql>flush privileges;


mysql>select 'host','user' from user where user='root';


mysql>quit

 

posted @ 2016-05-30 10:40  磊哥|www.javacn.site  阅读(8432)  评论(0编辑  收藏  举报