国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

MYSQL出現 Client does not support authentication 的解決方法

2024-07-24 13:04:43
字體:
來源:轉載
供稿:網友
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.
  • For additional background on password hashing and authentication, see section 5.5.9 Password Hashing in MySQL 4.1.

    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 绥芬河市| 万州区| 正定县| 锡林郭勒盟| 沿河| 和林格尔县| 中山市| 原平市| 枣阳市| 兴业县| 佛山市| 崇阳县| 林芝县| 宜君县| 镇坪县| 浪卡子县| 星子县| 积石山| 日土县| 诸城市| 靖江市| 乌兰县| 田林县| 当雄县| 霍山县| 珠海市| 容城县| 含山县| 德安县| 张家港市| 莆田市| 青冈县| 新巴尔虎右旗| 盈江县| 冷水江市| 长武县| 克什克腾旗| 乃东县| 庄浪县| 庄浪县| 庄浪县|