登录mysql
mysql -uroot -pmysql1234
执行以下命令
use mysql;
update user set host = ‘%’ where user = ‘root’;
select host, user from user;
Note:命令最好手敲,复制粘贴可能不好使。^-^。
mysql -uroot -pmysql1234
use mysql;
update user set host = ‘%’ where user = ‘root’;
select host, user from user;
Note:命令最好手敲,复制粘贴可能不好使。^-^。