程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> 關於MYSQL數據庫 >> MySQL從3.x升級到4.x出現的問題解決辦法

MySQL從3.x升級到4.x出現的問題解決辦法

編輯:關於MYSQL數據庫
 因為升級了權限表導致的.

MySQL4.1以上版本連接時出現ClIEnt does not support authentication protocol問題解決辦法

shell> MySQL
ClIEnt does not support authentication protocol requested
by server; consider upgrading MySQL clIEnt

官方的說法是

MySQL 4.1 and up uses an authentication protocol based on a passWord hashing algorithm that is incompatible with that used by older clIEnts. .....




如果你升級mysql到4.1以上版本後遇到以上問題,請先確定你的mysql clIEnt 是4.1或者更高版本.(Windows下有問題你就直接跳到下面看解決方法了,因為MySQL 在Windows是clIEnt和server一起裝上了的)

請使用以下兩種方法之一

其一:

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

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved