proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« firefox accesskey 处理改动 | Main | KNOPPIX Linux Live CD V5.1.1 2007-01-04 发布及硬盘运行 »

January 5, 2007

Mysql 4.1 password 变化引起的 authentication protocol 支持问题解决办法

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
http://windtear.net/archives/2007/01/05/001185.html
http://windtear.net/archives/2007/01/05/001185.html

Mysql 4.1 password 变化引起的 authentication protocol 支持问题解决办法

想要写的是 mysql 4.1 password 的变化

当 shell mysql 或 php mysql_pconnect 连接 mysql server 时 如遇到如下提示:
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
则是因为 mysql 4.1 password 变化造成的

解决:
方法一:升级客户端的库
方法二:降级服务器的 password 用 old_password
configure the MySQL server with --old-passwords

mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

Alternatively, use UPDATE and FLUSH PRIVILEGES: 

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
    -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

参考 refman-4.1-en.chm (对 mysql 5 同样适用)
5.7.9	Password Hashing as of MySQL 4.1
17.3.1	Common Problems with MySQL and PHP
A.2.3	Client does not support authentication protocol
本blog WWW

Posted by windtear at January 5, 2007 11:54 PM

Trackback Pings

TrackBack URL for this entry:
http://cgi.windtear.net/cgi-bin/wt-tb.cgi/1185

Comments

Post a comment

Remember Me?



我爱网络
2007-12-31 23:51 2007年度 ipcn.org/ipchina.org 总结报告
2007-12-31 00:31 vmware gsx server service
2007-12-31 00:15 squid 对 404 302 缓存的相关问题
2007-12-30 14:24 升级到 MovableType 3.3x 并修改 entry_basename 兼容性
2007-12-30 13:52 [php] realip judge 前面补0的ip格式剔除
2007-12-14 16:34 rm -rf * 系统管理员要排查的定时炸弹
2007-12-13 19:03 山西的宽带运营商太过分了 私自窜改dns解析
2007-12-13 16:35 F5 MIB 再学习 唯一性标记用地址的小bug
2007-12-11 22:15 perl 用Spreadsheet::WriteExcel写了个处理/读写excel的小程序
2007-12-11 13:39 perl 变量转义的问题

本站使用中的任何问题,请与 windtear SPAM windtear SPAM net 联系
Copyright© 1999-2008 Windtear. All rights reserved.
京ICP备05050670号