-   Linux - Newbie (
-   -   cannot find mysqld.stock (

bonedragon 09-06-2012 06:49 PM

cannot find mysqld.stock
I've looked through all the similar threads to no avail.
this is what i know so far:
when i

run mysqladmin -u root -p status
I get this:

mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

So I checked and there is no mysqld.sock file.
I also checked the /tmp directory as others have suggested but its not in there either.

I ran

sudo whereis mysql.sock.
to try and find it but it just returned

The problem seems to have started after I updated form Ubuntu 10.04 to 12.04.
I'm at a loss can anyone please help me.

evo2 09-06-2012 08:07 PM


did you confirm that the server is actually running? Have you read the mysql server log files?


bonedragon 09-06-2012 09:46 PM

yes i did it was running

anyway i managed to fix the issue by removing and then re-installing mysql.

All times are GMT -5. The time now is 06:44 AM.