Possible Duplicate:
Cannot connect to MySQL 4.1+ using old authentication
I am posting this question because I could not find any working solution. So please excuse.
I am using mysql 5.5.24 and PHP 5.3.13 (both from WAMP2 installation)
While I am able to connect to the database from php script through the webserver, the same script give the following error.
Could not 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'). 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
Here are a few things I already :
- I tried changing the password through mysql console.
- fulshed previlges.
changed the following line in config.ini.php of phpMyAdmin from
$cfg['Servers'][$i]['extension'] = 'mysqli' to
$cfg['Servers'][$i]['extension'] = 'mysql'
With no avail.
The error message refers to a my.cnf file which does not exist in this version of mysql. So I assumed it must be the my.ini, but nothing there mentions old-passwords.
How do I get this thing to work?