溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

MYSQL(解決方法):Client does not support authentication(轉(zhuǎn))

發(fā)布時間:2020-08-18 09:57:28 來源:ITPUB博客 閱讀:148 作者:post0 欄目:MySQL數(shù)據(jù)庫
MYSQL(解決方法):Client does not support authentication(轉(zhuǎn))[@more@]

mysql4.1以上版本連接時出現(xiàn)Client does not support authentication protocol問題解決辦法

shell> mysql

Client does not support authentication protocol requested

by server; consider upgrading MySQL client

官方的說法是

MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....

如果你升級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 User = 'some_user';

mysql> FLUSH PRIVILEGES;

上面的部分請按自己實際情況修改....

這樣做后,連接就會正常了@
向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

pp he
AI