wiflish
          Loving Life! Loving Coding!
          posts - 98,comments - 98,trackbacks - 0
          轉:http://www.phpv.net/article.php/288

          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 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;
          
          上面紅色的部分請按自己實際情況修改....
          這樣做后,連接就會正常了@!
          posted on 2006-12-23 15:50 想飛的魚 閱讀(789) 評論(0)  編輯  收藏 所屬分類: database
          主站蜘蛛池模板: 鄂托克前旗| SHOW| 岳池县| 二连浩特市| 瑞昌市| 东乌珠穆沁旗| 莲花县| 易门县| 大荔县| 丰台区| 赞皇县| 英山县| 夏邑县| 库车县| 苏尼特左旗| 进贤县| 四子王旗| 新沂市| 馆陶县| 朝阳县| 兖州市| 宜阳县| 连平县| 高要市| 抚远县| 石首市| 新巴尔虎右旗| 从化市| 壶关县| 长阳| 淮阳县| 河曲县| 桃江县| 香河县| 桂平市| 乐山市| 荔浦县| 西昌市| 繁峙县| 泽州县| 博野县|