所有其他机器试图连接时都报如下错误:FjHost '218.26.161.90' is not allowed to connect to this MySQL server

解决方案 »

  1.   

    呵呵,
    是的, Linux 下的 MySQL 是不支持远程访问的,你可以在 Linux 主机上以mysql -h localhost -u root     回车登录,
    然后执行 GRANT ALL PRIVILEGES ON *.* TO root@'%' 
    更详细的 授权 操作语句请查看 MySQL 参考手册
      

  2.   

    安装完成后,缺省仅设置了本地访问的root用户(密码为空)!GRANT ALL PRIVILEGES ON *.* TO root@'%' identified by 'password'  (从任何其它IP地址都可以访问)或GRANT ALL PRIVILEGES ON *.* TO root@'192.168.0.12' identified by 'password'    (只能从该地址访问)
    做一点小补充,:)
      

  3.   

    lxf_1976(小木)我照你说的作了,出现如下问题:(我没用过mysql)
    [218.26.141.62] ERROR 1045: Access denied for user: '[email protected]' (Using password: YES)
      

  4.   

    假设mysql所在服务器IP为218.26.141.62(设为A)mysql客户端所在机器IP为218.26.161.90(设为B)则:
    GRANT ALL PRIVILEGES ON *.* TO root@'218.26.161.90' identified by 'password'

    GRANT ALL PRIVILEGES ON *.* TO root@'%' identified by 'password'  (从任何其它IP地址都可以访问)访问时:(通过B的mysql客户端)
    mysql -h218.26.141.62 -uroot -p我讲的比较简单,更详细的说明请参考mysql手册,http://expert.csdn.net/Expert/topic/1872/1872219.xml?temp=.8576166有中文版手册