MySQL Forums
Forum List  »  Newbie

mysql.sock
Posted by: drewsheneman
Date: March 12, 2007 09:45AM

I installed mysql through ports on freebsd 6.1. i started the daemon, and mysql starts. however when i try "mysql" i get

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

i looked this up on the mysql page and did find much help. first i tried

shell> chmod +t /tmp

to protect tmp. that didnt solve it, so i tried to point my sock file to another directory in /etc/my.cnf:

[mysqld]
socket=/usr/local/etc

[client]
socket=/usr/local/etc

i got the same error message:

# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/usr/local/etc' (38)
#

even with the new directory.

i tried mysqld_safe:

# mysqld_safe
Starting mysqld daemon with databases from /var/db/mysql
rm: /usr/local/etc: is a directory
STOPPING server from pid file /var/db/mysql/hostname.com.pid
070312 10:39:46 mysqld ended

does anyone know where my problem lies? thanks!

Options: ReplyQuote


Subject
Written By
Posted
mysql.sock
March 12, 2007 09:45AM


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.