Super detailed teaching on how to upgrade the version of MySQL

Super detailed teaching on how to upgrade the version of MySQL

1. Introduction

Upgrade mysql5.7 to mysql 8.0

Prepare two compression packages!

2. Back up the database

1.cmd enters the path in the original database

2. Enter the command

mysqldump -u root -p --all-databases > D:\JAVA_Installation\MySQL\data\Backup.sql

1. Your MySQL username. The username you usually use to log in to the database

2. Save the backup file path

3. Do not create the .sql file in advance, it will be created automatically.

The password will be entered.

Backup Success

3. Uninstall the original Mysql

111. Must do

Open a command window and enter net stop mysql to shut down the MySQL service, then delete the MySQL service input:

sc delete MySQL

1. Uninstall Mysql in the panel (if not, go to the next step)

2. Delete the MYSQL file in C:\Program Files or C:\Program Files (x86) (if not, go to the next step)

3. Delete the registry: windows+R run the "regedit" file and open the registry

(1) Delete registry 1: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\EventLog\Application\MySQLD Service

4. Delete C:\ProgramData\MySQL under C drive

Open hidden item option without data

5. Delete the directory: (if not needed)

6. Stop the Mysql service and delete all installation paths

Enter cmd, enter the old version of Bin, and enter mysqld -remove

Deleting a Directory

4. Restore the previous database

Open

Just execute the .sql once

This is the end of this article which teaches you in great detail how to upgrade the MySQL version. For more information on MySQL version upgrade, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • MySQL 8.0.24 version installation and configuration method graphic tutorial
  • Some improvements in MySQL 8.0.24 Release Note
  • Implementation of MySQL's MVCC multi-version concurrency control
  • The best solution for resetting the root password of MySQL 8.0.23
  • About the configuration problem of MyBatis connecting to MySql8.0 version
  • How to solve the problem that Seata cannot use MySQL 8 version
  • Detailed explanation of DBeaver connecting to MySQL version 8 and above and solving possible problems
  • Bugs encountered when using mybatis-generator with mysql8.0.3 in IDEA
  • Solution to the garbled code problem in MySQL 5.x
  • Detailed tutorial on installing MySQL 8.0.20 database on CentOS 7
  • Solution to ONLY_FULL_GROUP_BY error in Mysql5.7 and above
  • Solve the installation problem of mysql8.0.19 winx64 version
  • Django 2.2 and PyMySQL version compatibility issues
  • Steps to install MySQL 5.7 in binary mode and optimize the system under Linux
  • Installation of various versions of MySQL 8.0.18 and problems encountered during installation (essence summary)

<<:  Design: A willful designer

>>:  Synology NAS uses Docker container to build KMS activation server to activate Windows system and office (operation steps)

Recommend

Zookeeper unauthorized access test problem

Table of contents Preface Detect Zookeeper servic...

Zen coding for editplus example code description

For example, he enters: XML/HTML Code div#page>...

5 super useful open source Docker tools highly recommended

Introduction The Docker community has created man...

Solution to forgetting the password of the pagoda panel in Linux 3.X/4.x/5.x

Enter ssh and enter the following command to rese...

About React Native unable to link to the simulator

React Native can develop iOS and Android native a...

Getting Started: A brief introduction to HTML's basic tags and attributes

HTML is made up of tags and attributes, which are...

Implementation of grayscale release with Nginx and Lua

Install memcached yum install -y memcached #Start...

MySQL Optimization Solution Reference

Problems that may arise from optimization Optimiz...

The problem of form elements and prompt text not being aligned

Recent projects involve the creation of a lot of ...

Detailed installation tutorial for MySQL zip archive version (5.7.19)

1. Download the zip archive version from the offi...

What are the image file formats and how to choose

1. Which three formats? They are: gif, jpg, and pn...