Imad Posted June 22, 2009 Share Posted June 22, 2009 As the title describes, I keep getting that error. /usr/local/mysql/bin/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! (I've installed MySQL a dozen times on other servers and never encountered such an error, so I'm pretty much puzzled.) Sometimes I can get it to work, and when I do, it clears the root password and everything up so I have to do it all over again. If I attempt to shutdown the MySQL server, then try to restart, I get stuck with the sock 2 error for a bunch of times until it decides to work again. This is very unstable and unworkable. Any ideas on why it's doing this? I installed it manually using the tar.gz source files version 5.0.83 on Redhat Linux Enterprise 5. The config I used was "./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-collation=utf8_general_ci" Despite /tmp/mysql.sock exists, it returns the error. Any help will be greatly appreciated. Best Regards. Quote Link to comment https://forums.phpfreaks.com/topic/163253-mysql-sock-2-doesnt-exist/ Share on other sites More sharing options...
fenway Posted June 27, 2009 Share Posted June 27, 2009 Have you consulted the refman page on this issue? Quote Link to comment https://forums.phpfreaks.com/topic/163253-mysql-sock-2-doesnt-exist/#findComment-864759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.