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

Advertisements

About Nick Xu

Not a DBA anymore
This entry was posted in MySQL. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s