[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Connecting to my MySQL from PHP on my RAQ3
- Subject: [cobalt-users] Connecting to my MySQL from PHP on my RAQ3
- From: "Steven Young" <steven.young@xxxxxxxxxxxxxxx>
- Date: Wed Jan 9 14:36:47 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I'm a bit of a newbie to MySQL but I'm having no success connecting to the
pre-installed MySQL on my RAQ3 via PHP. I can do PHPINFO(); and it seems PHP
is compiled fine to work with MySQL...
Here's the snippet of PHP I am using to connect:-
<?php
$link = mysql_connect ("localhost", "root", "password")
or die ("Could not connect");
print ("Connected successfully");
mysql_close ($link);
?>
The error message I get is:-
Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/tmp/mysql.sock' (111) in /home/sites/site11/web/dbtest.php
on line 10
Could not connect
I'm sure I have had this working fine on a local RedHat system next to me,
but can anyone give me any clues as to why it won't work on my RAQ3?
Thanks,
Steven