Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2759065
  • 博文数量: 587
  • 博客积分: 6356
  • 博客等级: 准将
  • 技术积分: 6410
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 10:54
个人简介

器量大者,福泽必厚

文章分类

全部博文(587)

文章存档

2019年(3)

2018年(1)

2017年(29)

2016年(39)

2015年(66)

2014年(117)

2013年(136)

2012年(58)

2011年(34)

2010年(50)

2009年(38)

2008年(16)

分类: Mysql/postgreSQL

2012-02-08 11:22:10

Client does not support authentication protocol requested  by server; consider upgrading MySQL client
场景:用户的db为mysql4.0.27,他们需要mysql5的db,我就在mysql5.0.45上为用户新创建一个db,然后用户安装自己的web项目,却提示如下:
Client does not support authentication protocol requested by server; consider upgrading MySQL client  
原因:MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....
解决方法:

请使用以下两种方法之一

其一:

mysql> SET PASSWORD FOR -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd'); ##开始我修改密码时使用:set password for username = password("passowrd");就是因为password()函数的问题,替换成和OLD_PASSWORD()就正常了!

其二:

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd') -> WHERE Host = 'some_host' AND User = 'some_user'; mysql> FLUSH PRIVILEGES; 上面红色的部分请按自己实际情况修改....

阅读(1669) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~