forget and forget

          能吃能睡是福;能忘是大福......

          posts - 39, comments - 26, trackbacks - 0, articles - 10
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          Mysql4安裝Client does not support authentication protocol requested問題的解決

          今天升級了一下Mysql數(shù)據(jù)庫,結(jié)果出現(xiàn)了以下錯誤:
          Client does not support authentication protocol requested by server; consider upgrading MySQL client

          升級到4.1.7版:
          [root@eygle gbook]# mysql -uroot -p -heygle
          Enter password:
          Welcome to the MySQL monitor.  Commands end with ; or \g.
          Your MySQL connection id is 44 to server version: 4.1.7-max

          Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

          mysql>

          查詢了一下,在官方網(wǎng)站發(fā)現(xiàn)了解決方法:
          http://dev.mysql.com/doc/mysql/en/Old_client.html

          共有以下兩種解決方法:

          一:

          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;


          使用第二種方法,解決了該問題。


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 东山县| 大埔区| 开远市| 都匀市| 商丘市| 淮北市| 安国市| 灌南县| 平利县| 湾仔区| 启东市| 兴化市| 嘉荫县| 柘城县| 共和县| 徐水县| 炉霍县| 巫山县| 彩票| 科尔| 开远市| 江孜县| 巴东县| 阳谷县| 定南县| 太保市| 马山县| 方山县| 大新县| 土默特左旗| 婺源县| 麻栗坡县| 台湾省| 台州市| 凤山市| 双江| 洪泽县| 甘南县| 弥勒县| 阿坝| 江孜县|