How to manage MySQL Server using Terminal on Ubuntu/Linux machine?
Use the service
command to perform the below basic operations on the MySQL Server installed on Ubuntu/Linux machine.
Use the below command to start the MySQL Server.
sudo service mysql start
Use the below command to stop the MySQL Server.
sudo service mysql stop
Use the below command to restart the MySQL Server.
sudo service mysql restart
Use the below command to check the status of the MySQL Server.
sudo service mysql status