报错: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
报错
使用adminer链接远程数据库时报这个错误,因为PHP版本设置为5.3及以上,将数据库加密模式是41位加密,所以如果以前的老加密,并且密码没改的话,就会造成这个问题,最简单的就是改一次密码
如果没法改密码了,那么就只能切换php 5.2版本了,这样才支持老的加密模式,亲测通过
解决办法
- PHP版本需要用PHP 5.2,然后用phpmyadmin 4.0 左右的版本,以便支持兼容 php 5.2
- 然后再链接即可,这样就可以管理数据库了