Determine Whether Your MySQL Server Is Running
- Log into your mysql server
- Switch to your into your mysql directory by typing the following command:cd mysql
- Type the following at the command line:~/mysql/bin/mysqladmin -u root -p status
- Enter your root MySQL password in order to continue.
- If the results look something like the following output, MySQL is running properly:Uptime: 4 Threads: 1 Questions: 62 Slow queries: 0 Opens: 51 Flush tables: 1 Open tables: 45 Queries per second avg: 15.500If the results look like the following output, MySQL is running properly, but you entered the incorrect password:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)If the results look like the following output, MySQL is not running properly:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/path/to/sock/mysql.sock' (111)