February 15, 2013 by Nitesh

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

# /etc/init.d/mysqld stop

Start MySQL Server

# /etc/init.d/mysqld start

Restart MySQL Server

# /etc/init.d/mysqld restart

Hope you find this small tip useful.

  • guy obvious

    change the colour of the code text or background, can barely see anything there, retard.

    • Nitesh Luharuka

      Modified. Thanks for letting me know.

  • Tu vas me reconnaitre….

    [[email protected] ~]# /etc/init.d/mysqld restart

    -bash: /etc/init.d/mysqld: No such file or directory

    • Nitesh Luharuka

      Have you installed MySQL properly?

    • Rajesh W

      try > service mysqld restart;

  • Thanks bro

Support us!

If you like this site please help and make click on any of these buttons!

Powered by WordPress Popup