forget and forget

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

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

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

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

          升級(jí)到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;


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


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 揭西县| 衡阳市| 康定县| 涪陵区| 怀安县| 泰顺县| 望城县| 闽侯县| 肥西县| 凉城县| 宁都县| 慈溪市| 昌都县| 永嘉县| 台中市| 长丰县| 柏乡县| 孝感市| 米泉市| 香河县| 尼玛县| 时尚| 龙门县| 乌恰县| 闵行区| 南阳市| 夹江县| 罗甸县| 杂多县| 柞水县| 吴旗县| 温宿县| 拉萨市| 新密市| 唐河县| 东海县| 巩留县| 华蓥市| 南昌县| 延长县| 新田县|