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;


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

          主站蜘蛛池模板: 华坪县| 专栏| 平利县| 屏南县| 二手房| 永安市| 菏泽市| 肇庆市| 南澳县| 都江堰市| 益阳市| 拉萨市| 廉江市| 道孚县| 利津县| 辽中县| 祁连县| 乐陵市| 兴海县| 中方县| 文成县| 武功县| 开化县| 湘潭市| 周至县| 容城县| 宁乡县| 武功县| 根河市| 台安县| 湛江市| 资兴市| 会东县| 沅陵县| 稻城县| 鄂州市| 习水县| 上杭县| 襄汾县| 司法| 九龙城区|