Connecting to MySQL 4.1.10 in PHP error
Posted: Mon Feb 28, 2005 1:50 pm
I'm in the process of moving servers right now. I decided to upgrade to the latest stable versions of MySQL (4.1.10) and PHP (4.3.10).
I believe everything is working ok, except that when I try to connect to MySQL, I get the following error:
"Client does not support authentication protocol requested by server; consider upgrading MySQL client"
This is the code I use to make a connection:
I can connect to the database using other programs. Does anyone how I need to upgrade my code to make it work?
I believe everything is working ok, except that when I try to connect to MySQL, I get the following error:
"Client does not support authentication protocol requested by server; consider upgrading MySQL client"
This is the code I use to make a connection:
Code: Select all
$hostname_connUser = "localhost";
$database_connUser = "*****";
$username_connUser = "*****";
$password_connUser = "database_user";
$connUser = mysql_connect($hostname_connUser, $username_connUser, $password_connUser) or die(mysql_error());