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