Giter Site home page Giter Site logo

baotiao / inno_space Goto Github PK

View Code? Open in Web Editor NEW
140.0 140.0 43.0 1.54 MB

Inno_space is a command-line tool designed for direct access to InnoDB (.ibd) files.

Home Page: http://baotiao.github.io/

License: GNU General Public License v2.0

Makefile 0.07% C 8.83% C++ 91.10%
cpp innodb mysql

inno_space's People

Contributors

baotiao avatar stepinto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

inno_space's Issues

mysql 8.0.35似乎无法使用show-records和dump-all-records

我尝试使用了show-records和dump-all-records,都无法读取表中的记录。是不兼容吗?我的命令是
./inno -f /var/lib/mysql/db01/t1.ibd -c show-records -p 3 -s /root/t1.json

t1表示单独创建的,没有使用tools下的案例

你好,文件解析有些问题,请帮忙看看。

[root@aaaaa inno_space-main]# ./inno -f ../project.ibd -c list-page-type
File path ../project.ibd path, page num 0
==========================Space Header==========================
Space ID: 7233
Highest Page number: 768
Free limit Page Number: 384
FREE_FRAG page number: 6
Next Seg ID: 7
==========================space page type==========================
File size 12582912
start end count type
0 0 1 FSP HDR
1 1 1 INSERT BUFFER BITMAP
2 2 1 INDEX NODE PAGE
3 213 211 INDEX PAGE
214 255 42 FRESHLY ALLOCATED PAGE
256 260 5 INDEX PAGE
261 261 1 SDI INDEX PAGE
262 319 58 FRESHLY ALLOCATED PAGE
320 320 1 INDEX PAGE
321 767 446 FRESHLY ALLOCATED PAGE
[root@aaaaa inno_space-main]# ./inno -f ../project.ibd -c index-summary
File path ../project.ibd path, page num 0
==========================Space Header==========================
Space ID: 7233
Highest Page number: 768
Free limit Page Number: 384
FREE_FRAG page number: 6
Next Seg ID: 7
Suggestion
File size 12582912, reserved but not used space 0, percentage 0.00%
Optimize table will get new fie size 12582912
[root@aaaaa inno_space-main]#
没有打印出索引相关的信息。

show record details in specify page like innodb_space page-dump

like innodb_space example:

$ innodb_space -s ibdata1 -T innodb/t1 -p 3 page-dump
...
records:
{:format=>:compact,
 :offset=>127,
 :header=>
  {:next=>263,
   :type=>:conventional,
   :heap_number=>2,
   :n_owned=>0,
   :min_rec=>false,
   :deleted=>false,
   :nulls=>[],
   :lengths=>{"c2"=>36, "c3"=>72},
   :externs=>[],
   :length=>7},
 :next=>263,
 :type=>:clustered,
 :key=>[{:name=>"id", :type=>"INT UNSIGNED", :value=>1}],
 :row=>
  [{:name=>"c1", :type=>"INT UNSIGNED", :value=>777},
   {:name=>"c2",
    :type=>"VARCHAR(400)",
    :value=>"a1c1a7c7-bda5-11e9-8476-0050568bba82"},
   {:name=>"c3",
    :type=>"VARCHAR(400)",
    :value=>
     "a1c1a7c7-bda5-11e9-8476-0050568bba82a1c1aec5-bda5-11e9-8476-0050568bba82"}],
 :sys=>
  [{:name=>"DB_TRX_ID", :type=>"TRX_ID", :value=>10950},
   {:name=>"DB_ROLL_PTR",
    :type=>"ROLL_PTR",
    :value=>
     {:is_insert=>true,
      :rseg_id=>119,
      :undo_log=>{:page=>469, :offset=>272}}}],
 :length=>129,
 :transaction_id=>10950,
 :roll_pointer=>
  {:is_insert=>true, :rseg_id=>119, :undo_log=>{:page=>469, :offset=>272}}}

best regards :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.