转载自:https://blog.csdn.net/e_wsq/article/details/79695709
打开CMD,依次执行
- 执行MySQL mysql -u root -p(执行后,需输入密码)
- 执行
use mysql;
- 执行
update user set host = '%' where user = 'root';
这一句执行完可能会报错,不用管它。 - 执行
FLUSH PRIVILEGES;
转载自:https://blog.csdn.net/e_wsq/article/details/79695709
打开CMD,依次执行
use mysql;
update user set host = '%' where user = 'root';
这一句执行完可能会报错,不用管它。FLUSH PRIVILEGES;