First check if your MySQL server is running or not. You can use the following command to check this:
ps -ef | grep mysqld