Add MySQL to the service under Windows platform

View services under widows

1. Desktop computer-->Right click-->Manage-->Computer Management (local)-->Services and Applications-->Services   

2. Enter services.msc during operation

Add mysql service in service

1 Open the dos window and enter the bin directory where mysql is installed (note: it must be opened as an administrator)
2 Execute mysqld --install Mysql, if the execution is successful, it will prompt Service Successfully Installed
3 Then you can view it in the windows service to the Mysql service

Delete, open, close, boot, manually start the service

1. mysqld --remove mysql deletes mysql service from windows service

2. net start mysql opens mysql service

3. net stop mysql closes mysql service


The above command is that the installed service will start automatically when you boot up. If you want to change the service to manual, run the following command
4. mysqld --install-manual

Or: According to directory 1, find the service you want to operate--"Right-click--"Properties--"General--"Startup type (you can select manual startup), so that mysql will not start up.

Turn it on in the service when you want to use it, you don't need to turn it off.


    
   

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343625&siteId=291194637
Recommended