Charles Mégnin wrote:
> 
> Although the my.cnf file specifies
> socket          = /tmp/mysql.sock
> the server expects mysql.sock to reside in
> /var/lib/mysql
> 
> [mysql@localhost]$ /usr/bin/mysqladmin -u root -p password
> Enter password:
> /usr/bin/mysqladmin: connect to server at 'localhost' failed
> error: 'Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (111)'
> Check that mysqld is running and that the socket:
> '/var/lib/mysql/mysql.sock' exists!
> 
> Any thoughts ?
>
/etc/my.cnf should comtain at least:
 
[mysqld]
socket=/tmp/mysql.sock
user=mysql

[client]
socket=/tmp/mysql.sock

Make sure /etc/my.cnf is world readable, and that mysql owns all of its
directories and files.

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