主机为linux 装了 mysql
客户端为xp
想使用SQLyog 去连接mysql服务器mysql 主机地址  我填主机IP
用户名 填主机用户名 如root
密码为 root 密码端口默认 3306数据库一栏为空白出现错误代码 1045  
access denied for user:'root@ip'(using password :YES)

解决方案 »

  1.   

    我telnet ip 3306  过去 是可以的 显示版本4.0.26
    是否说明对外已经开启3306  
      

  2.   

    那你运行select count(1) from mysql.user where host != 'localhost';
    如果没有结果的话再grant 你的权限 on *.* to '你的用户'@'IP地址' identified by '密码';
    flush privileges;
      

  3.   


    GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY 'password' WITH GRANT OPTION