以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
工具作者的博文:
<a href="https://blog.jcole.us/2013/01/02/on-learning-innodb-a-journey-to-the-core/" target="_blank">https://blog.jcole.us/2013/01/02/on-learning-innodb-a-journey-to-the-core/</a>
<a href="https://github.com/jeremycole/innodb_diagrams" target="_blank">https://github.com/jeremycole/innodb_diagrams</a>
<a href="https://www.percona.com/live/mysql-conference-2013/sessions/innodb-journey-core" target="_blank">https://www.percona.com/live/mysql-conference-2013/sessions/innodb-journey-core</a>
cd /var/lib/mysql --> 使用這個工具需要先先換到datadir目錄下
檢視系統表空間:
innodb_space -s ibdata1 system-spaces
其他指令可以參看
<a href="http://www.cnblogs.com/cnzeno/p/6322842.html" target="_blank">http://www.cnblogs.com/cnzeno/p/6322842.html</a>
本文轉自 lirulei90 51CTO部落格,原文連結:http://blog.51cto.com/lee90/1952013,如需轉載請自行聯系原作者