码迷,mamicode.com
首页 > 数据库 > 详细

Host is not allowed to connect to this MySQL server 错误的处理方法

时间:2015-05-30 10:33:38      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:

1.

mysql>use mysql;

mysql>update user set host = ‘%‘ where user = ‘root‘;

mysql>select host, user from user;

2. 

mysql>GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘mypassword‘ WITH GRANT OPTION;

mysql>flush privileges;

说明:%是哪个IP地址可以访问这个MYsql服务,可以换成你想要的IP地址!

Host is not allowed to connect to this MySQL server 错误的处理方法

标签:

原文地址:http://www.cnblogs.com/liulun/p/4539856.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!