Re: connecting to database..?

From: Date: Sun, 20 May 2001 16:48:26 +0000
Subject: Re: connecting to database..?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9477@lists.php.net to get a copy of this message
I have the same problem as you when using apache1.3.19, php4.0.5 and mysql3.23.38 and get the same warning message. I've spent many time to compile the system again but failed. So I forgive to use the newest version and use apache1.3.17, php4.0.4 and mysql3.23.38. It works now! Hope someone can help! ""Derick Dorner"" <webmaster@moax.com> ????? news:00cd01c0e13e$a10cda90$9865fea9@moax01... 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"); file://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 (#9477) next »