2013-08-02 32 views
0

我在那裏,我試圖連接到舊數據庫與新PHP5和獲得使用舊版本的MySQL密碼與PHP 5.3

mysql_connect(): mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). 

大家似乎通過更改要麼數據庫配置文件或來解決這個問題的一個問題重新安排他們的密碼。

Catch是,我現在也做不了。我想知道是否有辦法讓php5使用舊密碼。

回答

0

考慮到您的限制,您唯一的選擇是recompile PHPlibmysqlclient庫(而不是默認的本地PHP mysqlnd)。試試「Linux-Generic」「開發庫」二進制文件provided by MySQL

您可能需要使用舊版本libmysqlclient,我不確定新版本是否仍支持舊認證方法。