Jump to content

mysql command keeps saying that can't connect to socket


Recommended Posts

Hello,

i know that there's some topics related with socket connection problems, but it is not exactly my case: i'm using Mac os x 10.4.11 with apache 1.3.41 PHP 4.4.9 and MySql 5.1.31, When i was testing in a browser a database i moved mysql.sock to /var/mysql/mysql.sock from /tmp/mysql.sock, so when i used mysql command i moved from /var/ to /tmp/ . But suddenly mysql command doesnt work, it gives this connection error:

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

But in reality mysql.sock is actually in /tmp/mysql.sock .

Someone have a clue?

Thanks and greetings

the thing is that socket is actually in the right dir, but even if i move mysql.sock to /var/mysql/mysql.sock and use mysql-s /var/mysql/mysql.sock it keeps sending this message error:

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

thanks

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.