Home >Database >Mysql Tutorial >How to start and shut down the mysql service?

How to start and shut down the mysql service?

青灯夜游
青灯夜游Original
2019-05-20 15:45:5350155browse

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".

How to start and shut down the mysql service?

#2. Select [Services] under [Services and Applications] in the [Computer Management] interface.

How to start and shut down the mysql service?

#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.

How to start and shut down the mysql service?

3. When you click the left mouse button and select mysql, the option to start this service will appear. Just click to launch.

How to start and shut down the mysql service?

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.

How to start and shut down the mysql 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.

How to start and shut down the mysql service?

Then as shown in the figure below, select Manual in the startup type and click OK.

How to start and shut down the mysql service?

How to start and shut down the mysql service?

2. Use cmd command line

Press win r to open, enter cmd to quickly open the command line interface.

How to start and shut down the mysql service?

Enter the following command and press Enter to start the service.

net start mysql

How to start and shut down the mysql service?

Similarly, if you stop the mysql service, you can also use the command

net stop mysql

is the command to stop the mysql service.

How to start and shut down 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What file is mysql-bin?Next article:What file is mysql-bin?