当前位置:网站首页>Detailed steps for MySQL to recover data through IBD files
Detailed steps for MySQL to recover data through IBD files
2022-06-28 22:26:00 【1024 Q】
Recovery steps
1、 Create database ( Create at will )
2、 Create data table ( remarks : The table structure should be consistent with the table structure to be restored ,row_format Want to be with ibd Of documents row_format Agreement , otherwise , It will prompt that the two are inconsistent . At present row_format=dynamic)
3、 View the properties of the table
We use :show table status like ‘matlab’\G, View the properties of the table
remarks : When creating tables row_format Inconsistent with table attributes , be based on innodb yes , To put row_format Set to dynamic when , Need modification mysql Global configuration for , Directly in myql Modify... In the command :set global innodb_file_format=Barracuda;
4、 Table error information view show warnings
5、 explain
When we restore the table , Make sure that row_format and ibd Consistency of documents , If ibd File is compact Words , When you need to create a table , Set to row_format=compact, In recovery , Take care of yourself , From 6 Step on , Focus on how to recover .
6、 The first step of recovery : Remove tablespaces
**alter table matlab DISCARD TABLESPACE;**7、 Step two of recovery : Will back up ibd file , Put it in mysql->data-> The name of the created database ->, take ibd Copy to this directory , As shown in the figure below
See the specific path
-- Use sql Query data directory **show global variables like '%datadir%';**8、 Step three of recovery : Re import the table space
**alter table matlab IMPORT TABLESPACE;**9、 When the previous step is completed , We found that the data in the database has been completely recovered
10、 The structure of the data table must be consistent with that of the data table before recovery , Otherwise, the recovery fails , Lead to mysql Process restart , Details need to be checked mysql Of error Log analysis , in addition ,mysql Of CE Tools provide a convenient mysql Parameter configuration modification function
Add :Innodb And MyISAM The difference between storing files
Innodb Storage files are divided into :.frm,.idb
.frm: Storage table definition
.ibd: Store data and index
MyISAM Storage files are divided into :.frm,.myd,.myi
.frm: Storage table definition
.myd: Store the data
.myi: Storage index
summary
This is about Mysql adopt ibd This is the end of the article on file recovery data , More about Mysql ibd Please search the previous articles of the software development network or continue to browse the relevant articles below. I hope you can support the software development network in the future !
边栏推荐
- Database basic notes
- What is low code development?
- Yiming Anke submitted a statement to the Hong Kong Stock Exchange: the loss doubled in 2021, and the past financing amount was exaggerated
- Move the mouse out of the selected area style cancel
- 职业问诊 | 面试时被问到职业规划该怎么回答?
- Water brother's code
- Hyperjumptech/grule-rule-engine: rule engine implementation of golang
- 场景化接口开发利器,金蝶云苍穹新版OpenAPI引擎来了!
- 稳!上千微服务如何快速接入 Zadig(Helm Chart 篇)
- 2022-06-28:以下golang代码输出什么?A:true;B:false;C:panic;D:编译失败。 package main import “fmt“ func main() {
猜你喜欢

分享im即时通讯开发之WebSocket:概念、原理、易错常识

Zadig + SonarQube,为开发过程安全保驾

Post-00 cloud native Engineer: use Zadig to increase revenue and reduce expenditure for the R & D of Sichuang Technology (Guangzhou public transport)

ansible生产环境使用场景(七):批量部署elk客户端

Get to know Alibaba cloud (Cloud Computing) - development history, technical architecture, region and availability zone!

00 後雲原生工程師:用 Zadig 為思創科技(廣州公交)研發開源節流

The new version of OpenAPI engine of Kingdee cloud dome is coming!

爱数SMART 2022峰会开启,分享数据战略与建设数据驱动型组织方法论

终于有人把云原生架构讲明白了

2022-06-28: what does the following golang code output? A:true; B:false; C:panic; D: Compilation failed. package main import “fmt“ func main() {
随机推荐
Dart的类扩展、可选类型扩展
利用Redis实现点赞功能的示例代码
After crossing, she said that the multiverse really exists
Redis+AOP+自定义注解实现限流
水哥的代码
Ansible production environment usage scenario (7): batch deployment of elk clients
宜明昂科在港交所递表:2021年亏损翻倍,过往融资额存在夸大情形
职场进阶 | 了解岗位优势三板斧之“进场”
IPv6 comprehensive experiment
Zadig + cave Iast: let safety dissolve in continuous delivery
In the era of industrial Internet, the Internet in the traditional sense will evolve into many new forms
00 後雲原生工程師:用 Zadig 為思創科技(廣州公交)研發開源節流
What does project management really manage?
Akamai acquires linode
Description détaillée du schéma technique du sous - environnement syntonique auto - test de Zadig pour les développeurs
How to advance data analysis from 1 to 10?
Mysql通过ibd文件恢复数据的详细步骤
现在还能入“坑”数据分析吗?看看2022年数据分析热门岗位!
Rosdep update using fishros to solve ros1/ros2 problems 2022
Detailed explanation of Zadig's self-test and joint debugging sub environment for developers