2017-12-30 16:53:58
在 MySQL 的 bin 目录下执行:
登陆到数据
mysql -uroot -p密码
use mysql;
select host,user,password from user;
可以看到 user 为 root,host 为 localhost 的话,说明 MySQL 只允许本机连接,那么外网,本地软件客户端就无法连接了。
解决方案
执行如下命令:
update user set host='%' where user ='root';
flush privileges;
更多精彩内容:各种AI课程、技能课程、黑科技软件、网站小程序源码、副业小项目、PPT模板等精品素材、电商课程、推广引流课程等,尽在 天边资源网 。