MySQL Forums
Forum List  »  Install & Repo

Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Posted by: BreNet GmbH
Date: February 24, 2005 11:15AM

cd /var/lib
chown mysql.root mysql
chmod 755 mysql

Create a my.cnf in /etc
-------------------------------------------------------------
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
#set-variable = interactive_timeout=240
#set-variable = wait_timeout=240
#set-variable = max_connections=150
bind-address = 127.0.0.1
skip-name-resolve
safe-show-database

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
log-slow-queries = /var/log/mysql-slow.log
----------------------------------------------------------

Try to start it. Have a look in /var/log/mysqld.log. Paste mysqld.log output here.

Options: ReplyQuote


Subject
Written By
Posted
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
February 24, 2005 11:15AM


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.