Well, first question, is your mysql server running?
This command:
returns something like:
Code:
5492 ? S 0:00 /bin/sh /usr/bin/mysqld_safe
5534 ? Sl 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
5535 ? S 0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
9562 pts/0 S+ 0:00 grep mysql
for me. If it's not similar for you, the server daemons have stopped running for some reason. If you find the file(s) named mysql.log and take a look through them, you should get some info to help you.
This will help you find them: