On Ubuntu, you can restart, start, or stop the MySQL server by using the service command. Use any of the following instructions after logging in to your web server:


Use the following command to terminate the MySQL server:

sudo service mysql stop


Start MySQL command to follow this command

sudo service mysql start


Restart MySQL command to follow this command

sudo service mysql restart


Check MySQL Service Status

sudo service mysql status


I hope this article helps you learn how to start or stop the MySQL server on Ubuntu. 


Share