mysql不能打开本机3306端口

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
pantaiyang
帖子: 9
注册时间: 2009-04-13 16:15

mysql不能打开本机3306端口

#1

帖子 pantaiyang » 2009-07-03 18:05

mysql -h localhost -uroot -p能登录。
telnet localhost 3306成功。
但是:
pan@shooter:~$ mysql -h 172.27.130.236 -uroot -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '172.27.130.236' (111)
pan@shooter:~$telnet 172.27.130.236 3306
Trying 172.27.130.236...
telnet: Unable to connect to remote host: Connection refused
pan@shooter:~$

/etc/my.cnf没有bind-address这一行,防火墙关闭了,也没有更改mysql的端口号,为什么本机ip的3306端口不通?
回复