我正在尝试连接到远程mysql mysql -u user -p -h remotehost
并获得错误
ERROR 2003 (HY000): Can't connect to MySQL server 'remotehost' (110)
bind-address设置为0.0.0.0
我跑了netstat -tuplen并得到了:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
User Inode PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
114 3673093 -
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN
113 13137 -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
0 2018912 -
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
0 16772 -
tcp6 0 0 :::80 :::* LISTEN
0 3663980 -
tcp6 0 0 :::22 :::* LISTEN
0 2018914 -
tcp6 0 0 :::25 :::* LISTEN
0 16773 -
udp 0 0 127.0.0.1:11211 0.0.0.0:*
113 13138 -
udp 0 0 0.0.0.0:68 0.0.0.0:*
0 2002 -
有谁知道如何解决这个问题?感谢
答案 0 :(得分:0)
这只是一个安全问题,不允许从该IP连接。