MySQL 5.7.21 decompressed version of the tutorial to restore data through the historical data directory

MySQL 5.7.21 decompressed version of the tutorial to restore data through the historical data directory

Situation description: The database was started and shut down abnormally, resulting in the prompt "Starting" when the service was started again. I had no choice but to reinstall the unzipped version of the program.

About how to install: https://www.jb51.net/article/148140.htm Please visit this article.

The installation is successful and the data file directory is generated. The user password and other things are set. The directory effect is as follows:

The following is data recovery, which is very simple.

1. Find the data folder in the database directory (I have been unable to start the path F:\mysql-5.7.21-winx64 before), the directory is as follows:

There are many historical files in it, don't worry about the others, 1 is ibdata1, this file must be copied, 2 is the name of the database I want to restore

Shut down the mysql service, copy these two files to the data file directory of the newly installed mysql (F:\Program Files\mysql-5.7.21-winx64), restart the service, and you will find OJBK.

After clicking it, you will see that all the tables are there.

Summarize

The above is the tutorial illustration of how to recover data from the historical data directory of the decompressed version of MySQL 5.7.21. I hope it will be helpful to you. If you have any questions, please leave me a message and I 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:
  • MySQL database backup and recovery implementation code
  • MySQL uses mysqldump+binlog to completely restore the deleted database principle analysis
  • Analysis of MySQL data backup and recovery implementation methods
  • MySQL Binlog Data Recovery: Detailed Explanation of Accidentally Deleting a Database
  • How to restore single table data using MySQL full database backup data
  • How to use binlog for data recovery in MySQL
  • MySQL database operation and maintenance data recovery method
  • Navicat for MySQL scheduled database backup and data recovery details
  • Detailed explanation of how to restore database data through MySQL binary log
  • Two methods of restoring MySQL data

<<:  Detailed explanation of Angular routing animation and advanced animation functions

>>:  Detailed explanation of daily_routine example code in Linux

Recommend

Detailed explanation of mysql user variables and set statement examples

Table of contents 1 Introduction to user variable...

Detailed explanation of display modes in CSS tags

Label display mode (important) div and span tags ...

How to disable ads in the terminal welcome message in Ubuntu Server

If you are using the latest Ubuntu Server version...

Using Vue to implement timer function

This article example shares the specific code of ...

Solve the problem of the container showing Exited (0) after docker run

I made a Dockerfile for openresty on centos7 and ...

How to implement Hover drop-down menu with CSS

As usual, today I will talk about a very practica...

Regular expression usage in CSS selectors

Yes, CSS has regular expressions too (Amen) Two p...

Install Windows Server 2019 on VMware Workstation (Graphic Tutorial)

If prompted to enter a key, select [I don’t have ...

Best way to replace the key in json object

JSON (JavaScript Object Notation, JS Object Notat...

Detailed explanation of the principle and usage of MySQL stored procedures

This article uses examples to explain the princip...

What does the n after int(n) in MySQL mean?

You may already know that the length 1 of int(1) ...

Three JavaScript methods to solve the Joseph ring problem

Table of contents Overview Problem Description Ci...

Detailed explanation of the misunderstanding between MySQL and Oracle

Table of contents Essential Difference Database s...

Web design must also first have a comprehensive image positioning of the website

⑴ Content determines form. First enrich the conten...