Hello all.
I recently installed Mysql 4.1 Server, on a mashine with WinXP having APacheSSL server.
Apache/SSL is working fine.
Mysql as service is started/working OK.
Mysql is using server instance configuration.
PHP is also working OK except connectiong to mysql server.
One of procedures that connects to db is:
so there's no syntax error in it. Also, as note, this code works on other mysql/apache/php configured mashine.
So, when executed, this is first message that I receive:
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in...
So, if anyone have any suggestion? Perhaps some configuration of PHP or something?
Other details:
PHP 4.3.0
Server API Apache 1.3.27/OpenSSL 0.9.6g/mod_ssl 2.8.12
OS Win XP
PC: AMD Athlon 64 / 512MB RAM
Thanks for any suggestions.
I recently installed Mysql 4.1 Server, on a mashine with WinXP having APacheSSL server.
Apache/SSL is working fine.
Mysql as service is started/working OK.
Mysql is using server instance configuration.
PHP is also working OK except connectiong to mysql server.
One of procedures that connects to db is:
Code:
// Set database connection variables
$dbhost = 'localhost';
$dbpass = 'my_pwd';
$dbuser = 'root';
$dbname = 'books_db';
// Connect to mysql and select the db
mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname);
// Query the database
$result = mysql_query("SELECT id, title, author FROM books WHERE id = '$id'");
so there's no syntax error in it. Also, as note, this code works on other mysql/apache/php configured mashine.
So, when executed, this is first message that I receive:
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in...
So, if anyone have any suggestion? Perhaps some configuration of PHP or something?
Other details:
PHP 4.3.0
Server API Apache 1.3.27/OpenSSL 0.9.6g/mod_ssl 2.8.12
OS Win XP
PC: AMD Athlon 64 / 512MB RAM
Thanks for any suggestions.