本机环境是windows server 2003
mysql版本 5.0
默认3306端口 允许root远程访问 防火墙加入了例外
在本机用mysql administrator测试连接
通过localhost可以连,通过127.0.0.1可以连
通过服务器ip地址报错 mysql error number 2003 can not connect to mysql server on 实际ip地址(10061)
进而在本机测试3306端口
telnet localhost和127.0.0.1是没有问题的
telnet 实际ip地址 不能打开到主机的连接...
非常头疼,网上有很多类似的问题,但都是权限问题或者防火墙造成的.和我类似的遭遇均没有成功解决办法
求助各位高手!

解决方案 »

  1.   

    检查一下授权,是否仅给root@localhost , [email protected]给所有IP授一下权限 root@%.
        [align=center]====  ====
    [/align]
    .
    贴子分数<20:对自已的问题不予重视。
    贴子大量未结:对别人的回答不予尊重。
    .
      

  2.   

    user 表里面查过了,的确有root@%
    继续等待
      

  3.   

    防火墙打开mysql的端口没有?  一般是3306啊
      

  4.   

    You must put your mysqld port into the truth list of the firewall.
      

  5.   

    应该是防火墙的问题,把windows的防火墙关了试一下
      

  6.   

    Post your select user,password,host from mysql.user statement here.
      

  7.   

    有没有设置IP绑定啊
    bind-address=IP 
    如果你设置成了127.0.0.1
    外网是不能访问的
    你用netstat -an看一下,看外网IP对应的3306端口有没有监听先