Quote:
|
Originally Posted by sjau
can you test this script and tell me the output?
Code:
<?
//Global variables:
$username = ""; // Username for database here
$password = ""; // Password for database here
$db_host = "localhost"; // DB Server
$db_name = ""; //name of your database here
// Connect to DB
mysql_connect("$db_host","$username","$password")
or die("Unable to connect to SQL server!");
mysql_select_db("$db_name")
or die("Unable to select database!");
echo "Connection established to $db_name";
?>
|
This is the output:
Quote:
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in /home/admispconfig/ispconfig/web/mysqldb.php on line 10
Unable to connect to SQL server!
|
My server is Ubuntu 6.06. Installed mysql packages:
ii mysql-client 5.0.22-0ubuntu6.06 mysql database client (current version)
ii mysql-client-5.0 5.0.22-0ubuntu6.06 mysql database client binaries
ii mysql-common 5.0.22-0ubuntu6.06 mysql database common files (e.g. /etc/mysql
ii mysql-server 5.0.22-0ubuntu6.06 mysql database server (current version)
ii mysql-server-5.0 5.0.22-0ubuntu6.06 mysql database server binaries
Recent comments
14 hours 28 min ago
17 hours 23 min ago
18 hours 37 min ago
20 hours 51 sec ago
21 hours 38 min ago
23 hours 7 min ago
1 day 21 min ago
1 day 16 hours ago
1 day 17 hours ago
1 day 20 hours ago