MYSQL 新版出现 Client does not support authentication protocol requested by server; consider upgrading MySQL client解决办法(1)
MYSQL 帮助:
A.2.3 Client does not support authentication protocol
MySQL 4.1 and up uses an authentication protocol based on a passWord hashing algorithm that is incompatible with that used by older clients. If you upgrade the server to 4.1, attempts to connect to it with an older client may fail with the following message:
shell> mysqlClient does not support authentication protocol requestedby server; consider upgrading MySQL client
To solve this problem, you should use one of the following approaches:
- Upgrade all client programs to use a 4.1.1 or newer client library.
- When connecting to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password.
- Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the
SET PASSWORD
statement and the OLD_PASSWORD()
function:
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;
Substitute the password you want to use for ``newpwd'' in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.
- Tell the server to use the older password hashing algorithm:
- Start
mysqld
with the --old-passwords
option.
- Assign an old-format password to each account that has had its password updated to the longer 4.1 format. You can identify these accounts with the following query:
mysql> SELECT Host, User, Password FROM mysql.user -> WHERE LENGTH(Password) > 16;
For each account record displayed by the query, use the Host
and User
values and assign a password using the OLD_PASSWORD()
function and either SET PASSWORD
or UPDATE
, as described earlier.
如果你升级mysql到4.1以上版本后遇到以上问题,请先确定你的mysql client 是4.1或者更高版本.(WINDOWS下有问题你就直接跳到下面看解决方法了,因为MYSQL 在WINDOWS是client和server一起装上了的)
请使用以下两种方法之一
其一:
mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
其二:
mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
-> WHERE Host = 'some_host' AND Use
分享到:
相关推荐
开发部待定计划开发部待定计划开发部待定计划开发部待定计划开发部待定计划
分别通过待定系数插值、拉格朗日插值、三次和五次数据回归的方法对凸轮台工程案例进行工程数值计算。计算原理,流程图,程序代码,结果。
部编版第15章+待定系数法及K的几何意义.docx
《待定系数法确定二次函数的解析式》教学设计.pdf
用待定系数法求二次函数的解析式1 (2).ppt
待定系数法.doc
管理后台(待定).xlsx
管理后台(待定).xmind
待定.zip
0.51待定集中培训待定待定2数据库技术培训Oracle数据库体系结构、数据库管理11待定集中培训待定待定3系统类培训信息系统的使用、运维邓培训11待定集中培训
日程日期话题主持人链接到笔记2021-04-15 第一章:简介弗朗西斯科待定2021-04-15 第二章:统计学习弗朗西斯科待定第三章:线性回归待定待定第4章分类待定待定第5章:重采样方法待定待定第6章:线性模型选择和正则化...
待定 待定 9:30-10:00 待定 待定 10:00 咖啡 休息 10:30 待定 待定 11:30 待定 待定 11:30 待定 待定 12:00 不适用 午餐 1:30 待定 待定 2:00 待定 待定 2:30 待定 待定 3:00 咖啡 休息 3:30 待定 待定 ...
待定 待定 高级树 图表 待定 动态规划和记忆 位 待定 数学 待定 待定 线程和内存管理 待定 待定 待定 数据库和 SQL 待定 待定 待定 面向对象设计 待定 待定 待定 系统设计和可扩展性 待定 待定 待定 JavaScript 和 ...
C语言课设之学生学籍管理系统 待定.pdfC语言课设之学生学籍管理系统 待定.pdf
xml说明的待定待定待定地对地导弹福福福福福福福福福福发发发
PlatIAgro本地任务任务状态执照待定待定待定待定待定待定测验下载已安装所有要求的docker映像。在此示例中,我们使用公共MinIO服务器,但是您可以将其替换为任何其他MinIO服务器。 docker run --it --rm \ -e " ...
顶管施工监理实施细则(待定).doc
2013高考数学 解题方法攻略 待定系数法 理
多伦多待定待定多伦多3月7日至8日待定汉密尔顿3月21日至22日申请开放 温莎3月27日至29日申请开放 奥克维尔3月13日至14日申请是开放的 :check_mark_button:四月姓名地点日期申请期间笔记MLH合作 多伦多4月23日至24日...
待定