Mysql 4.1 Windows 下升級(jí)問(wèn)題
更新時(shí)間:2006年10月09日 00:00:00 作者:
使用PHPMYADMIN時(shí)報(bào)錯(cuò):
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
官方的說(shuō)法是
MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....
如果你升級(jí)mysql到4.1以上版本后遇到以上問(wèn)題,請(qǐng)先確定你的mysql client 是4.1或者更高版本.(WINDOWS下有問(wèn)題你就直接跳到下面看解決方法了,因?yàn)镸YSQL 在WINDOWS是client和server一起裝上了的)
請(qǐng)使用以下兩種方法之一
其一:
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)文章
php數(shù)組聲明、遍歷、數(shù)組全局變量使用小結(jié)
數(shù)組的本質(zhì):管理和操作一組變量,成批處理,下面為大家介紹下數(shù)組的分類、數(shù)組的分類及使用說(shuō)明,感興趣的朋友可以了解下哈2013-06-06php面向?qū)ο笕ヂ?(六)__set() __get() __isset() __unset()的用法
一般來(lái)說(shuō),總是把類的屬性定義為private,這更符合現(xiàn)實(shí)的邏輯。但是,對(duì)屬性的讀取和賦值操作是非常頻繁的,因此在PHP5 中,預(yù)定義了兩個(gè)函數(shù)“__get()”和“__set()”來(lái)獲取和賦值其屬性,以及檢查屬性的“__isset()”和刪除屬性的方法“__unset()”。2009-09-09