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;


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

          主站蜘蛛池模板: 阳西县| 南木林县| 南汇区| 泾源县| 惠州市| 房山区| 瓦房店市| 龙川县| 钟山县| 类乌齐县| 东乡族自治县| 稻城县| 临夏市| 迭部县| 桐梓县| 商水县| 鄢陵县| 开封市| 大厂| 永福县| 文登市| 万安县| 辰溪县| 大庆市| 海淀区| 大埔县| 运城市| 杂多县| 雅江县| 青岛市| 博野县| 双柏县| 巴马| 淮阳县| 玉树县| 无锡市| 桐庐县| 哈尔滨市| 泊头市| 成安县| 会昌县|