激情久久久_欧美视频区_成人av免费_不卡视频一二三区_欧美精品在欧美一区二区少妇_欧美一区二区三区的

服務器之家:專注于服務器技術及軟件下載分享
分類導航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數據庫技術|

服務器之家 - 數據庫 - Mysql - MYSQL出現" Client does not support authentication "的解決方法

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

2019-10-17 15:54mysql技術網 Mysql

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:

shell> mysql
Client does not support authentication protocol requested
by 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:

    1. Start mysqld with the --old-passwords option.

    2. 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. 

延伸 · 閱讀

精彩推薦
Weibo Article 1 Weibo Article 2 Weibo Article 3 Weibo Article 4 Weibo Article 5 Weibo Article 6 Weibo Article 7 Weibo Article 8 Weibo Article 9 Weibo Article 10 Weibo Article 11 Weibo Article 12 Weibo Article 13 Weibo Article 14 Weibo Article 15 Weibo Article 16 Weibo Article 17 Weibo Article 18 Weibo Article 19 Weibo Article 20 Weibo Article 21 Weibo Article 22 Weibo Article 23 Weibo Article 24 Weibo Article 25
主站蜘蛛池模板: 黄色免费影片 | 性插视频 | 亚洲第一成网站 | 国产毛片在线看 | 成人爽a毛片免费啪啪红桃视频 | 成人青青草| 色网免费观看 | 久久精品视频免费 | 精品国产一区二区三区在线观看 | 成人在线观看一区 | 精品国产一区二区在线 | 国产一级免费不卡 | 国产精品爆操 | 精品一区二区三区在线观看视频 | 国产精品久久久久久久成人午夜 | 国产成人精品一区二区视频免费 | 欧美片a| 成年免费视频黄网站在线观看 | 久久久久久久久久久久久久av | 久久久久久亚洲国产精品 | 蜜桃传媒视频麻豆第一区免费观看 | 国产一区二区三区视频免费 | 懂色av懂色aⅴ精彩av | 国产免费观看视频 | 全免费午夜一级毛片真人 | 国产免费资源 | 久在线播放| 久久成人黄色 | 国产精品一区二区羞羞答答 | 亚久久 | 日韩精品久久久 | hdbbwsexvideo | 美女羞羞视频在线观看 | 国产精品三级a三级三级午夜 | 国产亚洲美女精品久久久2020 | 国产99久久久久久免费看 | 久久久久国产精品久久久久 | 亚洲第五色综合网 | 啪啪毛片| 欧美三级欧美成人高清www | 日韩精品久久久久久久电影99爱 |