steviecee
06-22-2005, 10:03 AM
Hi i'mhaving real trouble getting a connection to a mysql database i need to query. the connection script is below:
<?php
DEFINE ('DB_USER', "****");
DEFINE ('DB_PASSWORD', "********");
DEFINE ('DB_HOST',"localhost");
DEFINE ('DB_NAME', "yorkshire");
//connect to mysql
$db_connection=mysql_connect(DB_HOST,DB_USER,DB_PASSWORD);
//select the database
mysql_select_db(DB_NAME);
?>
the errors are:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Server\Apache2\mysql_connect_york.inc on line 17
Warning: mysql_select_db(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Server\Apache2\mysql_connect_york.inc on line 21
Warning: mysql_select_db(): A link to the server could not be established in C:\Server\Apache2\mysql_connect_york.inc on line 21
I'm totally baffled, any ideas?
cheers
Steve
<?php
DEFINE ('DB_USER', "****");
DEFINE ('DB_PASSWORD', "********");
DEFINE ('DB_HOST',"localhost");
DEFINE ('DB_NAME', "yorkshire");
//connect to mysql
$db_connection=mysql_connect(DB_HOST,DB_USER,DB_PASSWORD);
//select the database
mysql_select_db(DB_NAME);
?>
the errors are:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Server\Apache2\mysql_connect_york.inc on line 17
Warning: mysql_select_db(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Server\Apache2\mysql_connect_york.inc on line 21
Warning: mysql_select_db(): A link to the server could not be established in C:\Server\Apache2\mysql_connect_york.inc on line 21
I'm totally baffled, any ideas?
cheers
Steve