How to Start, Stop and Restart MySQL from SSH

Using below commands you can start, stop and restart MySQL from SSH.
Login to your server as root via SSH, and run following commands.

Start MySQL

service mysql start


/etc/init.d/mysql start

Stop MySQL

service mysql stop


/etc/init.d/mysql stop

Restart MySQL

service mysql restart


/etc/init.d/mysql restart

Status of MySQL

If you want to know the status of MySQL on your server, run below command.

service mysql status

Our Recommended VPS Hosting

Leave us a Reply

Your email address will not be published. Required fields are marked *

* *