首頁  >  文章  >  後端開發  >  mysql41以上版本連線時出現Client does not support authentication protocol問題解決方法

mysql41以上版本連線時出現Client does not support authentication protocol問題解決方法

WBOY
WBOY原創
2016-07-29 08:36:332407瀏覽

mysql4.1以上版本連線時出現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 incompat
如果你升級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; 
上面紅色的部分請依照自己實際狀況修改.... 
這樣做後,連接就會正常了@!

以上就介紹了 mysql41以上版本連線時出現Client does not support authentication protocol問題解決方法,包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn