Mysql报错:1130-host ... is not allowed to connect to this MySql server如何处理
在搭建完LNMP环境后用Navicate连接出错
遇到这个问题首先到mysql所在的服务器上用连接进行处理
1、连接服务器: mysql -u root -p
2、看当前所有数据库:show databases;
3、进入mysql数据库:use mysql;
4、查看mysql数据库中所有的表:show tables;
5、查看user表中的数据:select Host, User,Password from user;
6、修改user表中的Host:update user set Host='%' where User='root';
7、最后刷新一下:flush privileges;
#一定要记得在写sql的时候要在语句完成后加上" ; "下面是图示说明
遇到这个问题首先到mysql所在的服务器上用连接进行处理
连接服务器: mysql -u root -p
查看当前所有数据库:show databases;
进入mysql数据库:use mysql;
查看mysql数据库中所有的表:show tables;
查看user表中的数据:select Host, User,Password from user;
修改user表中的Host:update user set Host='%' where User='root';
最后刷新一下:flush privileges;
重新在Navicate中测试一下:
以上就是Mysql报错:1130-host ... is not allowed to connect to this MySql server如何处理的详细内容,更多请关注其它相关文章!
推荐阅读
-
Mysql远程连接 Host * is not allowed to connect to this MySQL server
-
MySQL 1130 - Host 127.0.0.1 is not allowed to connect to this MySQL server
-
Navicat 连接 MySQL 失败 : 1130 - Host xxx is not allowed to connect to this MySQL server
-
MYSQL Error 1130:Host '计算机名' is not allowed to connect to this MySQL server
-
转:mysql远程连接 Host * is not allowed to connect to this MySQL server
-
MySQL安装提示错误Host '127.0.0.1' is not allowed to connect to this MySQL server
-
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES),该如何处理
-
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES),该如何处理
-
symfony报错:Couldn't locate driver named mysql,该如何处理
-
php连接mysql出错:Fatal error: Call to undefined function mysql_connect(),该如何处理