MYSQL出现" Client does not support authentication "的解决方法

mou10000

mou10000

2016-02-19 12:04

给自己一点时间接受自己,爱自己,趁着下午茶的时间来学习图老师推荐的MYSQL出现" Client does not support authentication "的解决方法,过去的都会过去,迎接崭新的开始,释放更美好的自己。
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:

(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)
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:

(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)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.

For additional background on password hashing and authentication, see section 5.5.9 Password Hashing in MySQL 4.1.

展开更多 50%)
分享

猜你喜欢

MYSQL出现" Client does not support authentication "的解决方法

编程语言 网络编程
MYSQL出现" Client does not support authentication "的解决方法

mysql "too many connections" 错误 之 mysql解决方法

编程语言 网络编程
mysql "too many connections" 错误 之 mysql解决方法

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

"未指定的错误"的解决方法

电脑入门
"未指定的错误"的解决方法

饮茶的"宜"与"忌"

养生 健康
饮茶的"宜"与"忌"

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

"bootmgr is compressed"开机故障解决方法

电脑入门
"bootmgr is compressed"开机故障解决方法

"0xc000007b"错误的解决方法

电脑入门
"0xc000007b"错误的解决方法

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

Access数据库的存储上限

Access数据库的存储上限

Win10被隐藏文件怎么显示

Win10被隐藏文件怎么显示
下拉加载更多内容 ↓