mysql 服务器已启动 端口开启仍无法连接的解决方法

1461阅读 0评论2011-12-07 小豆熊
分类:

权限已设置:
  1. #mysql>grant all on *.* to user@ip_addr identified by 'userpwd';
端口也已打开:
  1. #netstat -tlnp |grep mysql
  2. tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      9929/mysqld 
但是在windows下telnet端口始终连不上

解决方法是:

  注释掉配置文件中的bind_address
  1. #
  2. # Instead of skip-networking the default is now to listen only on
  3. # localhost which is more compatible and is not less secure.
  4. #bind-address        = 127.0.0.1


上一篇:没有了
下一篇:C++类中的静态成员变量和静态成员函数的作用