https://github.com/vnt-dev/ibd_viewer
mysql innodb .ibd文件解析器
https://github.com/vnt-dev/ibd_viewer
ibd innodb mysql rust
Last synced: 2 months ago
JSON representation
mysql innodb .ibd文件解析器
- Host: GitHub
- URL: https://github.com/vnt-dev/ibd_viewer
- Owner: vnt-dev
- Created: 2023-04-06T13:00:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T11:47:00.000Z (about 2 years ago)
- Last Synced: 2025-04-03T15:05:06.423Z (3 months ago)
- Topics: ibd, innodb, mysql, rust
- Language: Rust
- Homepage:
- Size: 35.2 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ibd_viewer
mysql innodb .ibd文件解析器### 示例
```
CREATE TABLE `test_index_1` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
`a` int NOT NULL,
`str1` varchar(255) DEFAULT NULL COMMENT 'str1',
`str2` varchar(255) NOT NULL COMMENT 'str2',
PRIMARY KEY (`id`),
UNIQUE KEY `str2_key` (`str2`),
KEY `a_key` (`a`),
KEY `str1_key` (`str1`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
```
#### 查看所有页的页号和类型

#### 查看索引根

#### 查看具体页的数据,可以看到行记录
### 编译
1. 安装rust环境 https://www.rust-lang.org/zh-CN/tools/install
2. 到项目目录下执行 cargo build### 支持
1. MySQL 8.0
2. 行格式为Compact、Dynamic 和 Compressed
3. B+树节点、FilPageTypeFspHdr