2017-04-20
1、***\bin\>MySQL -h localhost -u root
这样应该可以进入MySQL服务器
执行代码如下:
MySQL>update user set host = ‘%‘ where user = ‘root‘;
MySQL>select host, user from user;
2、MySQL>FLUSH PRIVILEGES
修改生效
3、MySQL>EXIT
时间: 2024-10-21 15:31:53
2017-04-20
1、***\bin\>MySQL -h localhost -u root
这样应该可以进入MySQL服务器
执行代码如下:
MySQL>update user set host = ‘%‘ where user = ‘root‘;
MySQL>select host, user from user;
2、MySQL>FLUSH PRIVILEGES
修改生效
3、MySQL>EXIT