我使用的Magento版本,1.6.1。錯誤MySQL連接
當我嘗試通過下面的錯誤連接DB Magento。
SQLSTATE[HY000] [2000] 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'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file
My MySql DB在另一個域中。我嘗試從本地連接該數據庫。
感謝您的回覆
我更改了DB密碼。現在它通過一個新的錯誤。
SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
這是一個老版本的密碼散列問題,所以作爲錯誤消息指出,只是要求你的mysql管理員創建一個新密碼或者只是使用'SET PASSWORD = PASSWORD('your_existing_password')'來改變舊的密碼與新版本兼容。 – Vijay 2011-12-28 07:30:34
我現在通過一個新的錯誤更改db密碼:SQLSTATE [HY000] [2002]連接嘗試失敗,因爲連接方在一段時間後沒有正確響應,或者由於連接的主機未能響應而建立的連接失敗 – 2011-12-28 08:53:44