solip.de
Intel Channel Partner
Linksys reseller

Archive for the 'PHP' Category

Articles about PHP-specific things.

# 2000 - mysqlnd can not connect to MySQL 4.1 + using old authentication

Created by Solip 31 March 2010

This error message occurs if you try with PHP 5.3 on a MySQL server to access and use the account or the MySQL server is "old-password". PHP 5.3 uses the new native MySQL extension mysqlnd, which is not old-password support.

Old-password is not used on purpose, it is probably an old account. The password must be reset by:

SET PASSWORD FOR 'account'@'localhost' = PASSWORD('passwort');

In order for a new hash is created.

Old-password is used intentionally (old connectors), so you have to go back to PHP 5.2. There, using the MySQL extension mysql the usual mechanisms.

Which accounts are affected, you can check with:

SELECT Host, User, Password FROM mysql.user;

16 places in the Password column = old password
41 points in the Password column = new password

Posted in PHP | No Comments »