我使用的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