Home >Database >Mysql Tutorial >What should I do if mysql automatically restarts after closing?

What should I do if mysql automatically restarts after closing?

coldplay.xixi
coldplay.xixiOriginal
2020-10-27 15:42:262983browse

Solution to automatically restart mysql after closing: First enter "cmd" in the "Start" search box on the desktop, click [cmd.exe] to open the DOS command window; then enter netstopmysql in the command window and press Enter , to close the database.

What should I do if mysql automatically restarts after closing?

Solution to automatically restart mysql after closing:

Normal method:

(1 ) Open the "Control Panel" window in Windows. In the "Control Panel" window, double-click "Administrative Tools" to open the "Administrative Tools" window.

(2) Double-click the "Service" program in the "Management Tools" window.

(3) Open the "Services" window and double-click "MySQL" in the list to open the "MySQL Properties" dialog box.

(4) There is a service status option under the "General" tab. Click "Stop" to close the database.

(5) If you want to reopen the database after closing, click "Start".

In addition, you can use the DOS command method:

(1) Enter "cmd" in the "Start" search box on the desktop, and click cmd.exe to open the DOS command window.

(2) Enter netstopmysql in the command window and press Enter to close the database.

(3) If you want to reopen the database after closing, enter netstartmysql in the DOS command window and press Enter.

More related free learning recommendations: mysql tutorial(Video)

The above is the detailed content of What should I do if mysql automatically restarts after closing?. 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

Related articles

See more