1 mysql -uroot -p 或 mysql -h 127.0.0.1 -p
2 use mysql
3 mysql> select host, user from user;
4 update user set host='%' where user='root';
(有警告忽视即可)
5 flush privileges;
1 mysql -uroot -p 或 mysql -h 127.0.0.1 -p
2 use mysql
3 mysql> select host, user from user;
4 update user set host='%' where user='root';
(有警告忽视即可)
5 flush privileges;