connecting to database..?

From: Date: Sun, 20 May 2001 15:07:40 +0000
Subject: connecting to database..?
Groups: php.db 
Request: Send a blank email to php-db+get-9475@lists.php.net to get a copy of this message
I receive the error when trying to connect to MySQL database: Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /usr/home/cupid/www/sql.php on line 13 The code I use to connect is: $link = mysql_connect ("localhost", "username", "password"); //with the username and pw filled in obviously. Is this some type of config problem between MySQL and PHP or what? Any help is appreciated. It ia a LAMP system BTW. Derick

« previous php.db (#9475) next »