Home >Database >Mysql Tutorial >How to start and shut down the mysql service?
How to start and shut down the mysql service:
1. Start and shut down the mysql service through the [Computer Management] interface
1. Move the mouse to the computer, right-click the mouse, and select "Manage".
#2. Select [Services] under [Services and Applications] in the [Computer Management] interface.
#3. Services are sorted alphabetically by default, so scroll down and find the mysql service starting with M.
At this point you can check if it has started, whether it started automatically or manually.
3. When you click the left mouse button and select mysql, the option to start this service will appear. Just click to launch.
5. After you click Start. You can see that the status of the mysql service shows that it is started. And when you select mysql again, three new options appear: stop the service; pause the service; restart the service. To shut down the service, just select Stop the service.
6. You can also set whether mysql is started manually or automatically.
Note: You can do this when you don’t need mysql for a long time. Set it to manual to improve your computer's performance.
Select mysql, right-click and select Properties.
Then as shown in the figure below, select Manual in the startup type and click OK.
2. Use cmd command line
Press win r to open, enter cmd to quickly open the command line interface.
Enter the following command and press Enter to start the service.
net start mysql
Similarly, if you stop the mysql service, you can also use the command
net stop mysql
is the command to stop the mysql service.
The above is the detailed content of How to start and shut down the mysql service?. For more information, please follow other related articles on the PHP Chinese website!