#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
2010-03-22 16:11
831 查看
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
出现这种问题也只有在MYSQL4.1.x以上版本,用4.0.x就没问题了
原因是:你使用的mysql服务器版本中使用了新的密码验证机制,这需要客户端的版本要在4.0以上,原来的密码函数被改为old_password ();,这样使用password()生成的密码在旧版本的客户端上就不好使了,而PHP中的MYSQL客户端都是3.23的(当然,mysqli的扩展除外)。
目前已知解决方法:
1、进入命令行下,转到MYSQL目录的BIN目录下,进入MYSQL命令行模式:
例:bin>mysql -uroot -p123 (用户root,密码123)
2、输入命令:
mysql>set password for 'root'@'localhost'=old_password('123'); (注意冒号不能少)
3、退入MYSQL命令行:
mysql>q
出现这种问题也只有在MYSQL4.1.x以上版本,用4.0.x就没问题了
原因是:你使用的mysql服务器版本中使用了新的密码验证机制,这需要客户端的版本要在4.0以上,原来的密码函数被改为old_password ();,这样使用password()生成的密码在旧版本的客户端上就不好使了,而PHP中的MYSQL客户端都是3.23的(当然,mysqli的扩展除外)。
目前已知解决方法:
1、进入命令行下,转到MYSQL目录的BIN目录下,进入MYSQL命令行模式:
例:bin>mysql -uroot -p123 (用户root,密码123)
2、输入命令:
mysql>set password for 'root'@'localhost'=old_password('123'); (注意冒号不能少)
3、退入MYSQL命令行:
mysql>q
相关文章推荐
- #1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
- PHPMYADMIN: #1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
- Client does not support authentication protocol requested by server; consider upgrading MySQL client
- 错误(Client does not support authentication protocol requested by server; consider upgrading MySQL client)?
- Client does not support authentication protocol requested by server; consider upgrading MySQL client
- Client does not support authentication protocol requested by server; consider upgrading MySQL Client
- Mysql 连接提示 Client does not support authentication protocol requested by server; consider upgrading MySQL client 解决方法
- Client does not support authentication protocol requested by server; consider upgrading MySQL client
- 烦人的问题:Client does not support authentication protocol requested by server; consider upgrading MySQL client
- MYSQL 新版出现" Client does not support authentication protocol requested by server; consider upgrading MySQL client"解决办法
- [MySQL][ODBC 3.51 Driver]Client does not support authentication protocol requested by server; consider upgrading MySQL client
- 错误MySQL 返回: #1251 - Client does not support authentication protocol requested by server
- linux解决:Client does not support authentication protocol requested by server; consider upgrading MySQ
- MYSQL 错误:Client does not support authentication protocol requested by server;
- MySQL 版本错误处理 (Client does not support authentication protocol requested by server)
- 新版Mysql密码算法不同导致“Client does not support authentication protocol requested by server”错误
- MySQL 版本错误处理(Client does not support authentication protocol requested by server)
- Mysql 4以上版本密码算法不同导致“Client does not support authentication protocol requested by server”错误
- MYSQL升级导致的"Client does not support authentication protocol requested by server"
- Client does not support authentication protocol requested by server: MYSQL