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

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

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

解决办法:执行命令

 

GRANT  ALL  ON  *.*  TO  root@"%"  IDENTIFIED  BY  "你自己的密码"

 

posted @ 2016-07-21 16:36  戏子诺  阅读(440)  评论(0)    收藏  举报