How to completely delete the MySQL service (clean the registry)

How to completely delete the MySQL service (clean the registry)

Preface

When installing the executable file of a certain project, it prompted me to uninstall MySQL so that it could install MySQL itself. Then I disabled the MYSQL service. After deleting this folder, I found that it still prompted me to uninstall the MYSQL service.

--------------------------------------------------------------------

To disable a service:

Or right-click My Computer -> Manage -> Services and disable it manually.

--------------------------------------------------------------------

After searching online, the following conclusions are drawn:

1. In cmd, enter sc delete mysql to delete the service.

2. However, the MYSQL service only shows a disabled status and is not actually cleaned up.

3. Delete related registry information

Search regedit in the Win7 start menu bar to enter the registry editor (you can also open it by entering this command in cmd)

Path 1: \HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\eventlog\Application\MySQL

Path 1: \HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\eventlog\Application\MySQL

Just delete the entire MySQL folder

4. The MySQL service has been completely cleared and the executable file can be installed.

5. Summary

This method can solve the problem of failure to reinstall MySQL (caused by incomplete cleaning of the MySQL service before).

6. References

1.//www.jb51.net/article/52806.htm

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM.

You may also be interested in:
  • Detailed explanation of MySQL database binlog cleanup command
  • How to quickly clean up billions of data in MySQL database
  • Code for automatically backing up and cleaning up MySQL database using batch processing
  • Summary of methods for cleaning Mysql general_log
  • How to clean up Alibaba Cloud MySQL space
  • Two ways to correctly clean up mysql binlog logs
  • How to automatically clean up MySQL binlog logs
  • Shell script automatically backs up MySQL to FTP and regularly cleans up expired backups
  • Analyze the causes and cleanup of fragmentation in MySQL tables
  • PHP data is cleaned before storage. Note that the value range of PHP intval is different from that of MySQL int.
  • How to clean up data in MySQL online database

<<:  Summary of two methods to implement vue printing function

>>:  Tutorial on installing VMWare15.5 under Linux

Recommend

In-depth discussion on auto-increment primary keys in MySQL

Table of contents Features Preservation strategy ...

Determine the direction of mouse entry based on CSS

In a front-end technology group before, a group m...

Determine whether MySQL update will lock the table through examples

Two cases: 1. With index 2. Without index Prerequ...

How to get the width and height of the image in WeChat applet

origin Recently, I am working on requirement A, i...

Solution to nacos not being able to connect to mysql

reason The mysql version that nacos's pom dep...

Use CSS to set the width of INPUT in TD

Recently, when I was using C# to make a Web progra...

Native js to implement form validation function

Table of contents When developing, analyzing the ...

MySQL cross-database transaction XA operation example

This article uses an example to describe the MySQ...

Node uses async_hooks module for request tracking

The async_hooks module is an experimental API off...

Detailed explanation of several storage methods of docker containers

Table of contents Written in front Several storag...

JavaScript array merging case study

Method 1: var a = [1,2,3]; var b=[4,5] a = a.conc...

HTML multimedia application: inserting flash animation and music into web pages

1. Application of multimedia in HTML_falsh animat...

Introduction to Linux environment variables and process address space

Table of contents Linux environment variables and...

Complete steps to install boost library under linux

Preface The Boost library is a portable, source-c...

Vue implements user login and token verification

In the case of complete separation of the front-e...