I had this same problem.  I could connect via the mysql client if I was
ROOT, but not otherwise.

You may have a permissions problem.  Ensure that /var, /var/lib, and
/var/lib/mysql are set to: drwxr-xr-x

That cured it for me.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 12:18 PM
To: [EMAIL PROTECTED]
Subject: PHP and MySQL



I wanna access to a DB via php but when I run it in a navigator y get the
following message


Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in
/home/httpd/html/challa.php on line 10
Unable to connect to database


I can get connected to the DB without problem with the mysql client but I
can't via web... what the heck is wrong?


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to