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

JS object copying (deep copy and shallow copy)

Table of contents 1. Shallow copy 1. Object.assig...

Web Design Tutorial (2): On Imitation and Plagiarism

<br />In the previous article, I introduced ...

MySQL uses the Partition function to implement horizontal partitioning strategy

Table of contents 1 Review 2 Five strategies for ...

How to recompile Nginx and add modules

When compiling and installing Nginx, some modules...

Summary of Css methods for clearing floats

Float is often used in web page layout, but the f...

5 commonly used objects in JavaScript

Table of contents 1. JavaScript Objects 1).Array ...

How to use async and await correctly in JS loops

Table of contents Overview (Loop Mode - Common) D...

Illustration-style website homepage design New trend in website design

You can see that their visual effects are very bea...

Essential bonus items for optimizing and packaging the front end of Vue projects

Table of contents Preface 1. Routing lazy loading...

Details on overriding prototype methods in JavaScript instance objects

Table of contents In JavaScript , we can usually ...

Detailed Example of MySQL InnoDB Locking Mechanism

1. InnoDB locking mechanism The InnoDB storage en...

In-depth understanding of HTML form input monitoring

Today I saw a blog post about input events, and o...

Implementation of MySQL custom list sorting by specified field

Problem Description As we all know, the SQL to so...