Joined: 28 Jun 2005 |
Posts: 1 |
|
|
|
Posted: Mon Jun 27, 2005 12:10 pm |
|
|
|
|
|
Hi I have created the following page (test.php)
<?
$user="user1";
$password="password";
$database="database";
mysql_connect(localhost,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="CREATE TABLE contacts (id int(6) NOT NULL auto_increment,first varchar(15) NOT NULL,last varchar(15) NOT NULL,phone varchar(20) NOT NULL,mobile varchar(20) NOT NULL,fax varchar(20) NOT NULL,email varchar(30) NOT NULL,web varchar(30) NOT NULL,PRIMARY KEY (id),UNIQUE id (id),KEY id_2 (id))";
mysql_query($query);
mysql_close();
?>
When I browse to localhost/test.php the file executes as expected and creates the tables in mysql.
However when I try to run (preview) the file within PhpED I get presented with the follwoing error:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Inetpub\wwwroot\test.php on line 6
Unable to select database
I have replaced both libmySQL.dll files that I found within the install directory with the orginal in the mysql directory but this does'nt have seemed to have worked.
It looks like a great product except for this annoying problem.
Any idea's how I could correct it greatly appreciated.
|
|