You can use the service command to perform basic operations like stop, start of restart MySQL server on Ubuntu. First, login to your web-server and use any of the following commands.
To stop MySQL server use the following command:
sudo service mysql stop
To start MySQL server use the following command:
sudo service mysql start
To restart MySQL server use the following command:
sudo service mysql restart
To check MySQL server status (i.e. whether it is running or not) you can use the following command:
Use the
service
CommandYou can use the
service
command to perform basic operations like stop, start of restart MySQL server on Ubuntu. First, login to your web-server and use any of the following commands.To stop MySQL server use the following command:
To start MySQL server use the following command:
To restart MySQL server use the following command:
To check MySQL server status (i.e. whether it is running or not) you can use the following command: