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

Analysis and solution of flex layout collapse caused by Chrome 73

Phenomenon There are several nested flex structur...

Summary of commonly used time, date and conversion functions in Mysql

This article mainly summarizes some commonly used...

Configure Java development environment in Ubuntu 20.04 LTS

Download the Java Development Kit jdk The downloa...

Implementation of Docker data volume operations

Getting Started with Data Volumes In the previous...

Two simple menu navigation bar examples

Menu bar example 1: Copy code The code is as foll...

MySQL independent index and joint index selection

There is often a lack of understanding of multi-c...

Vue integrates a rich text editor that supports image zooming and dragging

need: According to business requirements, it is n...

PHP-HTMLhtml important knowledge points notes (must read)

1. Use frameset, frame and iframe to realize mult...

About deploying a web project to Alibaba Cloud Server (5 steps to do it)

1. First log in to the Alibaba Cloud website to r...

Detailed explanation of the functions and usage of MySQL common storage engines

This article uses examples to illustrate the func...

MySQL solution for creating horizontal histogram

Preface Histogram is a basic statistical informat...

How to make your own native JavaScript router

Table of contents Preface Introduction JavaScript...