mysql4.1以上版本連接時(shí)出現(xiàn)Client does not support authentication protocol問(wèn)題解決辦法
更新時(shí)間:2007年03月15日 00:00:00 作者:
mysql4.1以上版本連接時(shí)出現(xiàn)Client does not support authentication protocol問(wèn)題解決辦法
shell> mysql
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
官方的說(shuō)法是
MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....
如果你升級(jí)mysql到4.1以上版本后遇到以上問(wèn)題,請(qǐng)先確定你的mysql client 是4.1或者更高版本.(WINDOWS下有問(wèn)題你就直接跳到下面看解決方法了,因?yàn)镸YSQL 在WINDOWS是client和server一起裝上了的)
請(qǐng)使用以下兩種方法之一
其一:
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;
上面紅色的部分請(qǐng)按自己實(shí)際情況修改....
這樣做后,連接就會(huì)正常了@!
shell> mysql
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
官方的說(shuō)法是
MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....
如果你升級(jí)mysql到4.1以上版本后遇到以上問(wèn)題,請(qǐng)先確定你的mysql client 是4.1或者更高版本.(WINDOWS下有問(wèn)題你就直接跳到下面看解決方法了,因?yàn)镸YSQL 在WINDOWS是client和server一起裝上了的)
請(qǐng)使用以下兩種方法之一
其一:
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;
上面紅色的部分請(qǐng)按自己實(shí)際情況修改....
這樣做后,連接就會(huì)正常了@!
相關(guān)文章
PHP 使用Echarts生成數(shù)據(jù)統(tǒng)計(jì)報(bào)表的實(shí)現(xiàn)代碼
這篇文章主要介紹了PHP 使用Echarts生成數(shù)據(jù)統(tǒng)計(jì)報(bào)表的實(shí)現(xiàn)代碼,需要的朋友可以參考下2018-01-01PHP進(jìn)階學(xué)習(xí)之垃圾回收機(jī)制詳解
這篇文章主要介紹了PHP進(jìn)階學(xué)習(xí)之垃圾回收機(jī)制,詳細(xì)分析了php垃圾回收機(jī)制的概念、原理及對(duì)性能的影響,需要的朋友可以參考下2019-06-06php array_map()函數(shù)實(shí)例用法
在本篇文章里小編給大家分享了一篇關(guān)于php array_map()函數(shù)實(shí)例用法,有興趣的朋友們可以學(xué)習(xí)下。2021-03-03PHP常用特殊運(yùn)算符號(hào)和函數(shù)總結(jié)(php新手入門必看)
新手經(jīng)常會(huì)有一些PHP特殊符號(hào)的問(wèn)題,這里把常用的特殊符號(hào)整理一下。如果你全部都會(huì)用,那就當(dāng)是溫故知新吧2013-02-02php中g(shù)et_object_vars()在數(shù)組的實(shí)例用法
在本篇文章小編給大家整理的是一篇關(guān)于php中g(shù)et_object_vars()在數(shù)組的實(shí)例用法,對(duì)此有興趣的朋友們可以學(xué)習(xí)下。2021-02-02