How to uninstall and reinstall MySQL? It will teach you how to quickly uninstall and reinstall MySQL

MySQL is an open source relational database management system, which is widely used in the development of various Web applications. However, sometimes we need to uninstall MySQL and reinstall it. This article will introduce you how to quickly learn how to uninstall and reinstall MySQL installer.

1、 Stop the MySQL service of the installed window

1) Right click the desktop "This computer" (My EEG) ->click Management

2) Click "Services and Applications" ->Services ->MySQL; Right click MySQL and click Stop Service.

mysql怎么卸载干净重装,教你快速学会卸载重装mysql

2、 Uninstall

1) Find Control Panel ->Programs ->Programs and Features and uninstall MySQL programs

mysql怎么卸载干净重装,教你快速学会卸载重装mysql

3、 Delete all files in the MySQL installation directory

1. Delete the MySQL directory in the hidden directory of C disk ProgramData

1) Open Disk C to view ->display ->hidden items

mysql怎么卸载干净重装,教你快速学会卸载重装mysql

2) Locate the ProgramData directory

Delete MySQL directory

2. Delete the installation directory of MySQL (according to whether you are installing on disk C or disk D or other customized locations)

4、 Windows+R runs the "regedit" file, opens and deletes the MySQL registry

mysql怎么卸载干净重装,教你快速学会卸载重装mysql

Locate and delete the registry:

HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesMySQL

The above steps are completed normally. To check whether the deletion is complete, follow the first step to check whether there is a MySQL service. If there is no description of the deletion, if there is still a MySQL service,

1) Click the Windows icon to search the command prompt and run as an administrator

2) Enter sc delete mysql to delete the recently installed MySQL service (hint: use this command with caution at ordinary times)

mysql怎么卸载干净重装,教你快速学会卸载重装mysql

Uninstalling and reinstalling MySQL is a very simple task. Just follow the above steps. Remember to back up all databases before uninstalling MySQL to avoid data loss. After reinstallation, you can create new databases and users by logging into MySQL.

 weiwei
  • This article is written by Published on May 24, 2023 15:36:44
  • This article is collected and sorted by the website of Mutual Benefit, and the email address for problem feedback is: wosnnet@foxmail.com , please keep the link of this article for reprinting: https://wosn.net/15621.html

Comment