Art,

Do you mean, whenever you try to run the 'mysql' client you get that error? That
usually happens because you are trying to connect to the mysql server using the
mysql client running on the same machine i.e. localhost. It's because the mysql
client uses a socket file when connecting locally and the mysqld server is not
storing the file in the default location where the client expects it. Fix it by
putting this entry in the file /etc/my.cnf under the [client] section.
socket          = /tmp/mysql.sock
or whatever the location of your socket file is. If you can't find it do a
find / -name "mysql.sock"

Hope that helps,

~mark.
http://www.workzoo.com/


Art Fore wrote:

> When I try to run the mysqld or safe_mysql, I get "connot connect to local
> MySQL server through socket '/var/lib/mysql/mysql.sock' (111)'. Check that
> mysql is running and that the socket : '/var/lib/mysql/mysql.sock' exists!
>
> This file does not exist. Where does it come from or how do you create it? I
> have done a search on the website, but no results. /etc/hosts file is also
> correct.
>
> Art
>
> ---------------------------------------------------------------------
> 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