Mysql 4.1 Windows 下升級問題
更新時間:2006年10月09日 00:00:00 作者:
使用PHPMYADMIN時報錯:
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;
(出處:Viphot)
相關(guān)文章
二十行語句實現(xiàn)從Excel到mysql的轉(zhuǎn)化
二十行語句實現(xiàn)從Excel到mysql的轉(zhuǎn)化...2006-10-10
PHP_MySQL教程-第二天while循環(huán)與數(shù)據(jù)庫操作
PHP_MySQL教程-第二天while循環(huán)與數(shù)據(jù)庫操作...2007-03-03
php面向?qū)ο笕ヂ?(十) final static const關(guān)鍵字的使用
這個關(guān)鍵字只能用來定義類和定義方法,不能使用final 這個關(guān)鍵字來定義成員屬性,因為final 是常量的意思,我們在PHP 里定義常量使用的是define()函數(shù),所以不能使用final 來定義成員屬性。2009-09-09

