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 stopStart MySQL command to follow this command
sudo service mysql startRestart MySQL command to follow this command
sudo service mysql restartCheck MySQL Service Status
sudo service mysql statusI hope this article helps you learn how to start or stop the MySQL server on Ubuntu.