1. use mysql;
2. select host,user,password from user;
3. update user set host = ’%’ where user = ’root’;
4.重启mysql服务
/etc/rc.d/init.d/mysqld restart
1. use mysql;
2. select host,user,password from user;
3. update user set host = ’%’ where user = ’root’;
4.重启mysql服务
/etc/rc.d/init.d/mysqld restart