Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Alright, I'm really bummin' here.
I found a site that seemed like it was going to be the answer to my MySQL configuration prayers http://www.quicomm.com/apm_mysql.htm. But something has gone wrong and I don't have the MySQL experience to fix it. I'm getting the following message after entering the "mysqladmin version" command in the Unix shell:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
Anyone out there ever come across this and have any idea what it means or how to correct it?

I'm going to assume the socket file exists and the server is running (i.e. the obvious).
- Use an explicit path for the socket:
mysqladmin --protocol=socket --socket=[$filepath] version- You may not have read/writes to the socket file (or directory). The above instructions you reference should have resolved this though (but I'm not running mysql on osx, so..)
Try specifying the hostname explicitly in the command:
mysqladmin -h [hostname] --port=3306 version
You can use TCP/IP ports instead of sockets. To do this, use a hostname rather than a socket. Localhost automatically uses sockets, by the way.

![]() |
PHP -Processing server co...
|
PHP JPEG file download on...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |