I am trying to make a connection to the mysql database
using the Enginesite editor for php: on windows 2000 server with IIS (PHP 5.0- mysql4.0):
I am getting the message:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
I am trying to connect to database to see how it works.i am using the following code:
*****************Code*************************
<html>
<head>
<title>New document</title>
</head>
<body>
<?php
$db_host = 'localhost';
$db_name = 'mysql';
$db_user = 'root';
$db_pass = '';
$pconn = 'off';
if($pconn == 'off') {
$db = mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error());
} else {
$db = mysql_pconnect($db_host, $db_user, $db_pass) or die(mysql_error());
}
mysql_select_db($db_name, $db);
?>
</body>
</html>
Thank you very much for the information.