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"" <[EMAIL PROTECTED]> ?????
00cd01c0e13e$a10cda90$9865fea9@moax01">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




-- 
PHP Database 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