Low Orbit Flux Logo 2 F

How To Restart MySQL

Restarting a MySQL server instance is easy. How you do this depends on the system that you are running your database on.

For systemd based systems you can restart like this:



sudo systemctl restart mysql

And stop/start like this:



sudo systemctl stop mysql
sudo systemctl start mysql

If you have a system with SysVinit you can restart like this:



sudo service mysql restart

And stop/start like this:



sudo service mysql stop
sudo service mysql start

On MacOS you could restart MySQL with this command:



sudo /usr/local/mysql/support-files/mysql.server restart

Video Instructions