How do I start and stop MySQL?

If you need to start, stop, or restart MySQL, follow the instructions below. Make sure that you’re first authenticated in your server via the command line interface. You can access the command line through popular applications such as PuTTY.

Red Hat Linux & CentOS

  • Start MySQL: /etc/init.d/mysqld start
  • Stop MySQL: /etc/init.d/mysqld stop
  • Restart MySQL: /etc/init.d/mysqld restart

You can also use the following methods.

  • Start MySQL: service mysqld start
  • Stop MySQL: service mysqld stop
  • Restart MySQL: service mysqld restart

Debian & Ubuntu

  • Start MySQL: /etc/init.d/mysql start
  • Stop MySQL: /etc/init.d/mysql stop
  • Restart MySQL: /etc/init.d/mysql restart

kbadmin has written 149 articles

Loading Facebook Comments ...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.