How to start, stop and restart MySQL in Ubuntu

mysqlThere are times when you will be forced to start, stop or restart your MySQL server, be it on your VPS or on your localhost. And like every other linux distribution, Ubuntu also comes with a shell script that lets you to do this.

All you need to do is to login as a root or make use of sudo. Open the terminal or login to your VPS and perform these commands:

To start MySQL:

sudo /etc/init.d/mysql start

To stop MySQL:

sudo /etc/init.d/mysql stop

To restart MySQL:

sudo /etc/init.d/mysql restart

Tags: , , , , ,
Copyright 2017. All rights reserved.

Posted March 19, 2011 by Santhosh in category "Linux