I had the same problem recently restart the server so it can create your socket again and
it should be all right.
From: Andrew Moore <eroomydna@stripped>
To: Peter Schrock <peter.schrock@stripped>
Sent: Sunday, October 9, 2011 10:51 AM
Subject: Re:Socket not found
Check the socket key-value in the my.cnf file under the client section.
Explicitly tell mysqladmin what one to use with the relevant cmd line
option. See the documentation for syntax.
On 9 Oct 2011 09:21, "Peter Schrock" <peter.schrock@stripped> wrote:
> I just loaded and built three different versions of mysql and all three
> versions have given me the same results. When trying to change the password
> to root, this is what I get:
> ./mysqladmin: connect to server at 'localhost' failed
> error: 'Can't connect to local MySQL server through socket
> Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
> Help please.