Q:

How to Start/Stop MySQL Server on Ubuntu

0

How to Start/Stop MySQL Server on Ubuntu

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Use the service Command

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:

sudo service mysql status

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Ubuntu / Linux Frequently Asked Questions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How to Change Current Working Directory in Ubuntu ... >>
<< How to Restart Apache Server on Ubuntu...