Detailed graphic explanation of how to install and completely delete MySQL by decompression

Detailed graphic explanation of how to install and completely delete MySQL by decompression

1. Install MySQL

(1) Unzip the downloaded MySQL compressed file to the directory where MySQL needs to be installed

(2) Open the unzipped folder, copy the default.ini file and rename it to my.ini. The relevant configuration of this file is:

(3) Add the MySQL installation path to the Path variable in the system environment variable configuration.

(4) Open cmd.exe as an administrator, enter the bin file in the MySQL installation directory, and start the installation

First enter mysqld -install to install, then enter net start mysql to start the service, then you can use mysql -u root -p to enter mysql. There is no password for the first entry. exit, exit.

To change the mysql password, you can use: mysqladmin -u username -p old password password new password

Grant all privileges to root: grant all privileges on *.* to root@"%" identified by ".";

flush privileges;

2. Completely delete

(1) Stop the service, then look for the software starting with mysql in the control panel to uninstall it, but I couldn't find it. I chose to delete the installation file directly, and it prompted me that the file was occupied.

(2) Use the cmd window command to delete the MySQL service: sc delete mysql (mysql here refers to the MySQL service name)

(3) Delete the registry win+R and then enter regedit and press Enter to enter the registry editor

Find the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL directory and delete it

Delete the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL directory (I did not find this item on my computer, but deleted the other two items and successfully deleted it completely)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL directory deleted

(4) When I tried to delete my installation file, it still prompted me that the file was in use, so I deleted it one by one from the subdirectories of the file. Later, I found that it was mysqld.exe in the bin directory that kept prompting that it was in use and I couldn't delete it.

At this time, force delete it, enter the cmd window, enter the bin file in my mysql installation directory, enter the command: mysqld.exe -remove, then go to the mysql installation directory to delete this file, it can be successfully deleted, delete the installation file,

At this point, MySQL is completely deleted and you can install another new version.

Summarize

The above is the method of installing and completely deleting MySQL by decompression introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • How to delete duplicate rows in mysql
  • Detailed example of creating and deleting tables in MySQL
  • Introduction to MySQL method of deleting table data with foreign key constraints
  • Practical method of deleting a row in a MySql table

<<:  How to add abort function to promise in JS

>>:  How to implement Nginx configuration detection service status

Recommend

Detailed explanation of MySQL data grouping

Create Group Grouping is established in the GROUP...

Let's talk in detail about the props attributes of components in Vue

Table of contents Question 1: How are props used ...

How to call the browser sharing function in Vue

Preface Vue (pronounced /vjuː/, similar to view) ...

Detailed explanation of HTML form elements (Part 1)

HTML forms are used to collect different types of...

Example of how to set up a Linux system to automatically run a script at startup

Preface Hello everyone, I am Liang Xu. At work, w...

Using JS to determine the existence of elements in an array in ten minutes

Preface In front-end development, you often need ...

Tutorial diagram of using Jenkins for automated deployment under Windows

Today we will talk about how to use Jenkins+power...

Detailed process record of nginx installation and configuration

Table of contents 1 Introduction to nginx 1 What ...

WeChat applet scroll-view realizes left-right linkage effect

WeChat applet uses scroll-view to achieve left-ri...

How to set the page you are viewing to not allow Baidu to save its snapshot

Today, when I searched for a page on Baidu, becaus...

Mysql optimization Zabbix partition optimization

The biggest bottleneck of using zabbix is ​​the d...

Seven solutions for classic distributed transactions between MySQL and Golan

Table of contents 1. Basic theory 1.1 Transaction...