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