How to Start-Stop MySQL Server on CentOS Server

Working with Linux Servers and you often need to start/stop/restart services. Many a times we just restart the complete server to restart services. However, restarting the server for restarting services is not recommended and we can restart the services manually via commands as well. This small post is to explain how you can start/stop/restart MySQL server from command line on CentOS Server.

Stop MySQL Server

  1. # /etc/init.d/mysqld stop

Start MySQL Server

  1. # /etc/init.d/mysqld start

Restart MySQL Server

  1. # /etc/init.d/mysqld restart

Hope you find this small tip useful.

For start mysql automatically

chkconfig --level 345 mysqld on

Our Divisions

 

Our Partners

TMN Studio

Who's Online

We have 229 guests and no members online