This is more of a conceptual talk on things that can be done using a configuration…
First check if your MySQL server is running or not. You can use the following command to check this:
ps -ef | grep mysqld