MySQL Forums
Forum List  »  Newbie

Re: connection error - Can't connect to local MySQL server through socket '/tmp/mysql-xxxxx.sock' (111)
Posted by: Julian Davtchev
Date: August 09, 2004 03:03PM

Not sure if this would help but hope so :)
You could set in your my.cnf file where exactly should mysqld create the socket file. Here is an example of the my-xxx.cnf file provided with mysql.
--------------------------------------------------------------
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /usr/local/mysql/data) or
# ~/.my.cnf to set user-specific options.
......
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port = 3306
socket = /tmp/mysql.sock
......
--------------------------------------------------------------

Options: ReplyQuote


Subject
Written By
Posted
Re: connection error - Can't connect to local MySQL server through socket '/tmp/mysql-xxxxx.sock' (111)
August 09, 2004 03:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.