mysql starts and closes the service on the command line under windows

First, the command line command to close and start the service:

2. When running the command line program of cmd, you must run it as an administrator. Otherwise, the following prompt will appear:

3. The service name of the mysql5.7 version generally defaults to mysql57, so if the service name mysql is used, it will definitely not succeed. The correct operation is as follows:

 

Four,

Guess you like

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