Tutorial on reinstalling MySQL on Windows 64-bit (Zip version, decompressed version MySQL installation)

Tutorial on reinstalling MySQL on Windows 64-bit (Zip version, decompressed version MySQL installation)

Uninstall MySQL

1. In the control panel, uninstall all components of MySQL

Control Panel -> All Control Panel Items -> Programs and Features, uninstall all programs related to MySQL

2. Find your MySQL installation path and see if there are any folders related to MySQL. Delete them all.

If it is installed on the C drive, check the two folders C:\Program Files (x86) and C:\Program Files

3. Delete the registry about MySQL

Enter "C:\Windows\regedit.exe" in the file explorer and the registry will pop up.

Delete the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL folder

If you can find the following content, delete it

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL

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

4. Paste the following red part into the address bar of the file explorer (this is a hidden folder)

C:\ProgramData\MySQL

Delete all contents in this folder

5. Restart your computer

Download MySQL

Official website address: https://dev.mysql.com/downloads/mysql/

1. After downloading, unzip the file to your preferred location

2. Add in the my.ini configuration file:

[mysqld]

##Port## port=3306

##You need to add character encoding settings (just put it below port)##

character-set-server=utf8

##File decompression path: ## basedir = "C:\\Program Files\\MySQL\\mysql-5.7.28-winx64\\"

##Database (data) storage path: ## datadir ="C:\\Program Files\\MySQL\\MySQLData\\" max_allowed_packet = 32M

3. Configure environment variables: (path) C:\Program Files\MySQL\MySQLData\;%MYSQL_HOME%\bin

4. Open cmd and go to the bin directory of the compressed package and run:

mysqld install mysql3306 --defaults-file="C:\Program Files\MySQL\mysql-5.7.28-winx64\my.ini"

mysql3306 is just a name. You can change it to your favorite name. After running, "Service successfully installed" will appear, indicating success.

5. Initialization statement C:\Program Files\MySQL\mysql-5.7.28-winx64\bin>mysqld --initialize After success

A lot of initial data will appear in the database (data) storage path you set

6. Start the service in cmd

C:\mysql-5.7.20-winx64\bin>net start mysql3306

7. Find the file ending with .err in the initialized file

Open the file and search for [Note] A temporary password is generated for root@localhost: followed by the initial password.

8. Log in to mysql:

Enter the command in cmd: mysql3306 -u root -p 初始密碼

To modify the password after logging in, run the command: mysql> set password for root@localhost = password('root');

Summarize

The above is the tutorial on how to reinstall MySQL on Windows 64-bit (Zip version, unzipped version MySQL installation). I hope it will be helpful to everyone. Thank you very much for your support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Detailed tutorial for installing the unzipped version of mysql5.7.28 winx64 on windows
  • The latest version of MySQL 8.0.22 download and installation super detailed tutorial (Windows 64 bit)
  • MySQL 8.0.22 installation and configuration method graphic tutorial under Windows 10
  • MySQL 8.0.19 installation detailed tutorial (windows 64 bit)
  • MySQL 8.0.21 installation tutorial under Windows system (illustration and text)
  • MySQL 8.0.20 Installation Tutorial with Pictures and Text (Windows 64-bit)
  • MySQL msi installation tutorial under windows10 with pictures and text
  • Detailed introduction to the MySQL installation tutorial under Windows

<<:  Detailed explanation on how to deploy H5 games to nginx server

>>:  Four methods of using JS to determine data types

Recommend

Problem record of using vue+echarts chart

Preface echarts is my most commonly used charting...

Summary and practice of javascript prototype chain diagram

Table of contents Prototype chain We can implemen...

3 ways to add links to HTML select tags

The first one : Copy code The code is as follows: ...

JS code to achieve page switching effect

This article example shares the specific code of ...

Small problem with the spacing between label and input in Google Browser

Code first, then text Copy code The code is as fol...

A brief discussion on the execution details of Mysql multi-table join query

First, build the case demonstration table for thi...

Comparison of mydumper and mysqldump in mysql

If you only want to back up a few tables or a sin...

Let IE support CSS3 Media Query to achieve responsive web design

Today's screen resolutions range from as smal...

vue cli3 implements the steps of packaging by environment

The vue project built with cli3 is known as a zer...

Sample code for implementing follow ads with JavaScript

Floating ads are a very common form of advertisin...

Detailed explanation of Object.create instance usage in js

1. Create a new object using the Object.create() ...

Angular Cookie read and write operation code

Angular Cookie read and write operations, the cod...