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?