phpmyadmin 3.7.1
mysql 5.0.77有两台局域网内的机器A 和 B
我把phpmyadmin(phpmyadmin 3.7.1)放在A机器上,想通过A机来管理B的mysql(mysql 5.0.77)配置好后登录phpmyadmin,都能正常显示A、B两台机器。输入用户名密码,本机(A)能正常访问,但是B机出现:
#2000 无法登录 MySQL 服务器的提示。-----进一步说明:
1. 实际上phpmyadmin放在B机器上,管理B机器自己的mysql都能正常管理的。
2. A管理B的数据库,需要在B的数据库里添加A的主机名,这一步我也做了
3. 有些地方说2000号错误旧密码的问题,我也用这样的语句set password for root@localhost = password('111')改了。为什么还出现#2000号错误???

解决方案 »

  1.   

    需要设置 B 机器上的 mysql 允许来自 A 机器的访问权限
      

  2.   

    在phpMyAdmin的library目录下面:  
    要将 config.inc.php 中  
    $cfg['Servers'][$i]['host'] = ’localhost’;  
    改成 $cfg['Servers'][$i]['host'] = ’127.0.0.1′;  
    网上的方法 试下 
      

  3.   

    我没看出你第二条是关于1楼的问题。我也用phpMyAmin管理过多个 没遇到这问题
      

  4.   

    权限设置过了~~又提示:
    #2000 - mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file
      

  5.   

    mysqlfront挺好用的,建议你使用这个。
    日记
      

  6.   

    对外开启3306端口(配置my.cnf把skip-networking去掉注释);
    管理帐号允许远程(非localhost)访问,固定IP建议直接设定IP地址;要是不行的话就去修改mysql的设定档;
    即先把bind-address = 127.0.0.1註解掉之後重啟
      

  7.   

    你是不是使用了php5.3呀这是因为连接数据库的时候,使用了新的加密方法。看这个
    http://www.go-lnmp.org/php/php%E5%8D%87%E7%BA%A7%E5%88%B05-3-3%E5%90%8E%E5%B8%A6%E6%9D%A5%E7%9A%84%E6%97%A0%E6%B3%95%E7%99%BB%E5%BD%95mysql%E7%9A%84%E9%97%AE%E9%A2%98.html