以CentOS6.8为例,在root目录下执行如下的命令:


yum install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel


innodb_ruby 需要至少1.9.3版本的ruby,yum自带的1.8.X版本太低了,需要我们编译安装ruby

wget https://cache.ruby-china.org/pub/ruby/ruby-1.9.3-p551.tar.gz

tar zxvf ruby-1.9.3-p551.tar.gz

cd ruby-1.9.3-p551

./configure

make && make install

默认安装到/usr/local/bin 目录下。


git clone https://github.com/rubygems/rubygems.git

cd rubygems/bin

./gem install innodb_ruby


工具作者的博文:

https://blog.jcole.us/2013/01/02/on-learning-innodb-a-journey-to-the-core/

https://github.com/jeremycole/innodb_diagrams

https://www.percona.com/live/mysql-conference-2013/sessions/innodb-journey-core


innodb_ruby使用方法:https://github.com/jeremycole/innodb_ruby/wiki


cd /var/lib/mysql   --> 使用这个工具需要先先换到datadir目录下


查看系统表空间:

  innodb_space -s ibdata1 system-spaces


其他命令可以参看

http://www.cnblogs.com/cnzeno/p/6322842.html

http://www.cnblogs.com/cnzeno/p/6322842.html