您的位置:首页 > 数据库 > MySQL

Host 'admin-PC' is not allowed to connect to this MySQL server

2015-06-05 14:55 585 查看
http://blog.csdn.net/liuxiyangyang/article/details/8951262

问题:"Host 'admin-PC' is not allowed to connect to this MySQLserver" (其中,admin-PC为我的机器名)

原因:安装MySQL时没有勾选“Enable root access from remote machines”

解决办法:执行命令

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mypassword';

flush privileges;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: