Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A gem providing a ruby interface to Maatkit open-source database utilities.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
Changelog
MIT-LICENSE
README
maatkit-ruby.gemspec
setup.rb

README

README for Maatkit-Ruby
=======================

Maatkit-Ruby is a gem providing a ruby interface to Maatkit open-source database utilities.

To install, type 'gem install maatkit-ruby'

Usage:

      require 'rubygems'
      require 'maatkit-ruby'

      mkarchiver = Maatkit::Archiver.new
      mkarchiver.source="h=oltp_server,D=test,t=tbl"
      mkarchiver.dest="h=olap_server"
      mkarchiver.file="/var/log/archive/%Y-%m-%d-%D.%t"
      mkarchiver.where="1=1"
      mkarchiver.limit=1000
      mkarchiver.commit_each=true
      mkarchiver.config
 => "mk-archiver --source h=oltp_server,D=test,t=tbl --commit-each --limit 1000 --file /var/log/archive/%Y-%m-%d-%D.%t --where 1=1 --dest h=olap_server "
      mkarchiver.start

      mkerrorlog = Maatkit::ErrorLog.new
      mkerrorlog.start("/var/log/mysql/mysqld.err")

Something went wrong with that request. Please try again.