Host 127.0.0.1 is not allowed to connect MySQL

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Host 127.0.0.1 is not allowed to connect MySQL相关的知识,希望对你有一定的参考价值。

访问报php网站报连接不到mysql
Host 127.0.0.1 is not allowed to connect MySQL

解决方式如下
vim /etc/my.cnf
#bind-address=127.0.0.1 把此项注释即可

防火墙已关闭,服务已启动,但是telnet还是连接不到Mysql数据库3306端口,也是注释此项即可

以上是关于Host 127.0.0.1 is not allowed to connect MySQL的主要内容,如果未能解决你的问题,请参考以下文章

MySQL 1130 - Host 127.0.0.1 is not allowed to connect to this MySQL server

Mac:oracle 24454 client host name is not set

Mysql连接报错:1130-host ... is not allowed to connect to this MySql server如何处理

解决ERROR 1130: Host '*.*.*.*' is not allowed to connect to this MySQL server 方法

dubbo could not get local host ip address will use 127.0.0.1 instead 异常处理

java.sql.SQLException: null, message from server: "Host 'DESKTOP-1PCF1N3' is not allow