以root身份操作:
mysql -u root -p
出现Enter password: 直接按回车键 提示welcome to the MySQL
1、use mysql
2、update user set host='%' where user='root';
3、查看 select host,use from user;
再次连接 成功了。
以root身份操作:
mysql -u root -p
出现Enter password: 直接按回车键 提示welcome to the MySQL
1、use mysql
2、update user set host='%' where user='root';
3、查看 select host,use from user;
再次连接 成功了。