forget and forget

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

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

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

          今天升級了一下Mysql數據庫,結果出現了以下錯誤:
          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>

          查詢了一下,在官方網站發現了解決方法:
          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;


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

          主站蜘蛛池模板: 恭城| 宁河县| SHOW| 靖远县| 都安| 慈利县| 樟树市| 新津县| 宁蒗| 五原县| 广安市| 荔波县| 奈曼旗| 馆陶县| 怀远县| 滁州市| 永嘉县| 利川市| 温州市| 临邑县| 利津县| 安溪县| 闽侯县| 隆林| 清镇市| 鲁山县| 绍兴市| 民乐县| 广昌县| 新晃| 阳山县| 河北省| 西昌市| 张家口市| 大荔县| 临西县| 靖江市| 施甸县| 吴桥县| 高阳县| 阜南县|