解决方法如下: mysql -u root -p 执行use mysql; 执行update user set host = '%' where user = 'root'; 执行FLUSH PRIVILEGES;
1