gsitc@ubuntu:/etc/mysql$ cat my.cnf (修改该文件)
文件路径为 etc/mysql下的my.cnf配置文件
mysql> use mysql;
mysql> update user set host='%' where user='root' and host='localhost';
service mysql restart //重启mysql服务
gsitc@ubuntu:/etc/mysql$ cat my.cnf (修改该文件)
文件路径为 etc/mysql下的my.cnf配置文件
mysql> use mysql;
mysql> update user set host='%' where user='root' and host='localhost';
service mysql restart //重启mysql服务