ping通IP,telnet 3306不通

一个同事装的MySQL数据库,无法连接。

​1、查看权限

​2、查看防火墙

​检查用户权限,防火墙都没问题,就是无法连接,能ping通,但是telnet 3306 端口无法成功。

​检查了下数据库配置文件,结果配置了bind-address
​bind-address = 127.0.0.1​

​禁掉bind-address = 127.0.0.1

​重启数据库,telnet成功!​

原文地址:https://www.cnblogs.com/hankyoon/p/5177518.html