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)航:
           
          主站蜘蛛池模板: 吴旗县| 酉阳| 合肥市| 上思县| 昌都县| 印江| 南木林县| 崇文区| 吉隆县| 襄汾县| 宁国市| 定陶县| 渑池县| 理塘县| 行唐县| 方山县| 丘北县| 长顺县| 东方市| 儋州市| 阜宁县| 冀州市| 民乐县| 长顺县| 吕梁市| 大悟县| 清河县| 合川市| 西吉县| 增城市| 闻喜县| 德格县| 社会| 烟台市| 邯郸县| 肥城市| 中牟县| 高安市| 灵山县| 安陆市| 平原县|