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

OR

/etc/init.d/mysql start

Stop MySQL

service mysql stop

OR

/etc/init.d/mysql stop

Restart MySQL

service mysql restart

OR

/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 Top Rated Host

Related Posts