I am using a Mac OSX apache server and a UNIX shell.
First I start my server by typing: sudo /usr/local/mysql/bin/mysqld_safe
and in return I get this…
110325 00:45:32 mysqld_safe Logging to ‘/usr/local/mysql/data/machine.local.err’.
110325 00:45:32 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
110325 00:47:12 mysqld_safe mysqld from pid file /usr/local/mysql/data/machine.local.pid ended
Then I type: mysqladmin status
This is the message I get in return…
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!