程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> SqlServer數據庫 >> 關於SqlServer >> Client does not support authentication protocol

Client does not support authentication protocol

編輯:關於SqlServer
ClIEnt does not support authentication protocol

MySQL 4.1 and up uses an authentication protocol based on a passWord hashing algorithm that is incompatible with that used by older clients. If you upgrade the server to 4.1, attempts to connect to it with an older clIEnt may fail with the following message:

shell> mysql



ClIEnt does not support authentication protocol requested



by server; consider upgrading MySQL clIEnt



To solve this problem, you should use one of the following approaches:

  • Upgrade all client programs to use a 4.1.1 or newer clIEnt library.
  • When connecting to the server with a pre-4.1 clIEnt program, use an account that still has a pre-4.1-style passWord.
  • Reset the passWord to pre-4.1 style for each user that needs to use a pre-4.1 clIEnt program. This can be done using the SET PASSWord statement and the OLD_PASSWord() function:
    MySQL> SET PASSWord FOR
    
    
    
        -> 'some_user'@'some_host' = OLD_PASSWord('newpwd');
    
    
    
    
    Alternatively, use UPDATE and FLUSH PRIVILEGES:
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved