kaini
12-28-2004, 02:51 PM
When I use this code:
<?php
$user="root";
$password="********";
$database="employees";
mysql_connect("24.65.102.80",$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();
?>
the browser tellls me this:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Program Files\Apache Group\Apache2\mybin\employees.php on line 5
Unable to select database.
Does anyone know how to solve this problem?
Does anyone know a better version of MySQL other than 4.1 and just command prompt, like more visual MySQL?
<?php
$user="root";
$password="********";
$database="employees";
mysql_connect("24.65.102.80",$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();
?>
the browser tellls me this:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Program Files\Apache Group\Apache2\mybin\employees.php on line 5
Unable to select database.
Does anyone know how to solve this problem?
Does anyone know a better version of MySQL other than 4.1 and just command prompt, like more visual MySQL?
