Home  >  Article  >  Database  >  How to cleanly uninstall mysql

How to cleanly uninstall mysql

醉折花枝作酒筹
醉折花枝作酒筹forward
2021-04-09 11:22:103947browse

This article introduces how to cleanly uninstall mysql. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to cleanly uninstall mysql

#The seventh step shows that the corresponding folder cannot be found. Step 7: The path is C:\Users\your username\AppData\Roaming\MySQL. It may be hidden. You need to show it. You can search directly in the c drive: C:\ProgramData

1. Uninstall the database in the panel

2. After uninstalling, delete the mysql in the folder

If you delete all the files remaining in the C:\Program Files (x86)\MySQL directory, delete the mysql folder as well

3. Run the "regedit" file in windows R and open the registry

##4. Delete the registry: HKEY_LOCAL_MACHINE\SYSTEM \ControlSet001\Services\Eventlog\Application\MySQLFolder

5. DeleteHKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ Eventlog\Application\MySQLFolder

If it does not exist, there is no need to delete it. If mine is not there, I will not delete it

6. Delete all the files in C:\ProgramData\MySQL under the C drive. If you cannot delete them, just use 360 ​​to crush them.

The programData file is hidden by default and will be visible after setting the display

If it is in the C drive The folder directory is as follows:

means that the folder ProgramData is hidden. At this time, there are two ways to solve the problem:

(1) Directly search for files Folder ProgramData; then find mysql in the folder and delete it directly.

(2) Set hidden files to be visible, the process is as follows;

In the computer interface, click Organization, select folders and search options,

The following dialog box pops up, click to view:

Search down in the advanced settings to see the hidden folders. Click Confirm

as shown below, click on the folder to delete mysql.

7. The key! ! ! ! Delete the folder under C:\Documents and Settings\All Users\Application Data\MySQL, be sure to delete

It is best to restart the computer and reinstall it

Pay attention to steps 6 and 7. Many people do not delete the data in Programdata after deleting the database, so when reinstalling the database, A 1045 error occurred and the last step of installation 1 was unsuccessful because the database was not completely deleted, that is, steps 6 and 7 were not executed.

Related free learning recommendations:

mysql database(Video)

The above is the detailed content of How to cleanly uninstall mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete