远程无法访问mysql,1130错误解决方法

①登录数据库,查看mysql下user表第一行host字段是否为%:select * from user\G
②如果host字段为localhost,则:update user set host='%' where host='localhost'\G
③重启数据库:service mysql restart
  问题解决...
posted @ 2017-03-20 14:22  XΙΠGXΙáng  阅读(125)  评论(0)    收藏  举报