Home  >  Article  >  Database  >  py_innodb_page_info简介

py_innodb_page_info简介

WBOY
WBOYOriginal
2016-06-07 16:11:191685browse

py_innodb_page_info工具使用 此工具是《MySQL技术内幕 InnoDB存储引擎》作者姜承尧写的用来分析表空间中的各页得类型和信息,用python编写。最近我也在拜读这本书。由三个文件py_innodb_page_info.py,mylib.py和include.py组成。需要放在同一个目录下,chmod

py_innodb_page_info工具使用
此工具是《MySQL技术内幕 InnoDB存储引擎》作者姜承尧写的用来分析表空间中的各页得类型和信息,用python编写。最近我也在拜读这本书。由三个文件py_innodb_page_info.py,mylib.py和include.py组成。需要放在同一个目录下,chmod 755 这三个文件的权限。注意:py_innodb_page_info查看的是磁盘文件,所有在运行时需要确保缓冲池中的页都刷回到磁盘。

用法举例:
1. py_innodb_page_info.py /usr/local/mysql/data/xiguaproductdb/t_xg_product_sizetable.ibd
\
2.py_innodb_page_info.py -v /usr/local/mysql/data/xiguaproductdb/t_xg_product_sizetable.ibd


通过py_innodb_page_info和hexdump可以找到mysql数据页中每个部分的值。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn