Get the App
SLTechnology News&Howtos  ›  Database  › 

The method of clearing mysql by system service

Shulou Source: shulou.com Published: 2022-06-01 02:26:59 09月30日 Update

This article mainly introduces the method of clearing mysql by system service, which is very detailed and has certain reference value. Friends who are interested must finish reading it!

The system service clears the mysql by first entering [CMD] in the running window, and then entering the code [net stop mysql;mysqld-nt-remove] in the window.

How the system service clears the mysql:

1. Enter "CMD" in the run window

2. Delete service: sc delete mysql / / the mysql here is the name of the service you want to delete

Enter the following command in CMD.

Net stop mysql / / stop service mysqld-nt-remove / / delete

Under win2k:

First of all, stop the service. Remove the service items of the system: mysqld-max-nt-remove

Delete the directory.

3. When you uninstall the old MYSQL database service from your computer, first stop the MYSQL service in the WINDOWS service. Then delete it in the add and delete program in the control panel, but you can't delete the MYSQL service completely, so you need to remove your MYSQL service from the registry.

There are several places:

1. Delete the HKEY_LOCAL_MACHINE\ SYSTEM\ ControlSet001\ Services\ Eventlog\ Application\ MySQL directory

2. Delete the HKEY_LOCAL_MACHINE\ SYSTEM\ ControlSet002\ Services\ Eventlog\ Application\ MySQL directory

3. Delete the HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ Eventlog\ Application\ MySQL directory

The ControlSet001,ControlSet002 in the registry may not be 001 and 002, but may be ControlSet005, 006 and so on. When you delete it, you can delete it.

Check if there is a my.ini file in the C:\ WINDOWS directory and delete it.

The above are all the contents of the method of clearing mysql in the system service. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Service system directory method input content registry run code value interest command place partner data database file time more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MySQL vpn Docker Apple