1、先进入命令模式
mysql -u root -p password
2、依次执行下面的语句即可
mysql>use mysql;mysql>update user set host ='%'where user ='root' and host ='localhost';mysql>flush privileges;本文共 217 字,大约阅读时间需要 1 分钟。
1、先进入命令模式
mysql -u root -p password
2、依次执行下面的语句即可
mysql>use mysql;mysql>update user set host ='%'where user ='root' and host ='localhost';mysql>flush privileges;转载于:https://www.cnblogs.com/lijiayong/p/11340033.html