py_innodb_page_info簡介,innodbpagesize

來源:互聯網
上載者:User

py_innodb_page_info簡介,innodbpagesize
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資料頁中每個部分的值。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.