AlionSolutions
November 21st, 2004, 09:54 AM
Hi Folks,
quite a long time since I visited CodeGuru last time :D
Ok, I have a problem connecting to a MySql-Database with PHP. The problem has been addressed often on the web, but noone seems to know a understandable solution. So I try it here:
First I have to tell the config-details:
Windows2000
Apache/2.0.52 (Win32)
PHP Version 4.3.9
I downloaded the latest MySQL-Package 4.1 but phpinfo() shows as client version 3.23.49.
Ok, most of you can imagine now where my problem is. When connecting to a MySQL-DB I get the error:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client
Ok, I read dozens of postings and articles about that error-message, but none of them gave me a clue how to get this done.
Most solution descriptions were for linux, and there was told to recompile some stuff. I don't understand anything.
As I understood, the client part of PHP is out of date and I have to update it. BUT I DOWNLOADED THE LATES PHP-VERSION ! So, what's up with this ?
Thanx in advance
Juergen
quite a long time since I visited CodeGuru last time :D
Ok, I have a problem connecting to a MySql-Database with PHP. The problem has been addressed often on the web, but noone seems to know a understandable solution. So I try it here:
First I have to tell the config-details:
Windows2000
Apache/2.0.52 (Win32)
PHP Version 4.3.9
I downloaded the latest MySQL-Package 4.1 but phpinfo() shows as client version 3.23.49.
Ok, most of you can imagine now where my problem is. When connecting to a MySQL-DB I get the error:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client
Ok, I read dozens of postings and articles about that error-message, but none of them gave me a clue how to get this done.
Most solution descriptions were for linux, and there was told to recompile some stuff. I don't understand anything.
As I understood, the client part of PHP is out of date and I have to update it. BUT I DOWNLOADED THE LATES PHP-VERSION ! So, what's up with this ?
Thanx in advance
Juergen