MySQL Newbie 001: How to Check if MySQL Service is Running on CentOS

As I am new comer in the MySQL domain, I am going to write up a few trivial posts about administrating MySQL. Today this is the first one:

The BASH command you are looking for to achieve the MySQL service status on CentOS system is:


shell> /etc/init.d/mysql status

And to connect to localhost’s MySQL service:


shell> mysql -h localhost -u root -p


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *