一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

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

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. 

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 97se亚洲国产综合自在线观看 | 国产第2页 | 无码乱人伦一区二区亚洲一 | 五月最新女厕所高跟嘘嘘 | 精品免费国产一区二区三区 | 精品一区二区三区高清免费观看 | 日本护士撒尿xxxx欧美 | 久久这里只有精品视频e | 99热最新| 成人精品一区久久久久 | 动漫美女3d被爆漫画 | 亚洲高清视频在线观看 | 91欧美秘密入口 | 五月桃花网婷婷亚洲综合 | 美琪美腿白丝交小说 | 日韩精品高清自在线 | 成人福利 | 91短视频在线播放 | 久久国产乱子伦精品免费不卡 | 99这里只有精品视频 | 国产久视频 | 国产日韩精品一区二区在线观看 | 糖心hd在线观看 | www亚洲国产 | 91短视频社区在线观看 | 人配人种视频xxxx | 亚洲 欧美 清纯 校园 另类 | 久久免费看少妇高潮A片JA | 精品香蕉99久久久久网站 | 91专区| 国产va欧美va在线观看 | 四虎影视国产精品婷婷 | 午夜亚洲福利 | 亚洲AV福利天堂一区二区三 | 2019天天干夜夜操 | gogort人体的最新网站 | 嫩草成人国产精品 | 免费视频完整版在线观看网站 | 草草视频人人爽 | 久久精品一区二区免费看 | 冰山美人调教耻辱h |