Yo,

I'd like to use a MySQL database on my website. If I look at the PHP details
of my site (see for yourself at http://infinity.shrimpwars.be/phpinfo.php)
it says under the MySQL section: "enabled". Well, if I create a testpage
with this as content:

<?
mysql_connect("localhost", "", "")
or die ("unable to connect to database");
?>

I get this:

Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in
/clans/infinity/mysql.php on line 2
unable to connect to database

If I run the script on my local machine I get this:

Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in e:\webserver\phptest\mysql.php on line 2
unable to connect to database


What is wrong? Do note that I don't know much about MySQL, I'm still
learning :-P



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to