su nobody
ls -l /var/lib/mysql/mysql.sock

Whatever user is trying to get it [such as nobody for a web server usually
or the user]- make sure the user can access the file.  Make sure you don't
have maybe /var/lib/mysql to be 750 or something like that.  Permissions is
a big one.

--
Mike

----- Original Message -----
From: "adam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 8:39 PM
Subject: help with mysql.sock error


> I am having trouble with mysql... i keep getting
>  "ERROR 2002: Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)"
>
> I uninstalled and reinstalled MySQL rpm (RH 7.1). I originally I was
> able to connect to MySQL server via command line client, but could not
> connect via web page with the error "mysql.sock (111)".
>
>
> ---------------------------------------------------------------------
> 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