0

I am trying to see if mysql is running. When I do:

 mysqladmin -u root -p status

I get:

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! 

But when I do: ps aux | grep mysql I get a proper PID and the user that is running it.

Why does it give an error in the first case?

Victor
  • 16,609
  • 71
  • 229
  • 409
  • http://stackoverflow.com/questions/11990708/error-cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysq , hope it can help – Naramsim Oct 27 '15 at 21:07
  • how did you start mysql? and what does the `ps aux | grep mysql` output look like? – BK435 Oct 27 '15 at 23:50

0 Answers0