Skip to content

Simple ruby abstraction to access the output from MySQL's SHOW SLAVE STATUS

License

Notifications You must be signed in to change notification settings

kaupertmedia/mysql_slave_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Kauperts::MysqlSlaveChecker

Kauperts::MysqlSlaveChecker is a simple abstraction to access the output of MySQL’s ‘SHOW SLAVE STATUS´ in Ruby.

It translates all column names found in the status output to downcased/underscore’d Ruby methods on the instance.

It is nothing but a quick hackdown and doesn’t even come with tests. It’s currently used as a standalone command line tool with performed actions based on their status at the bottom of the file.

Usage

MYSQL_USERNAME=le_slave MYSQL_PASSWORD=foo MYSQL_SOCKET=/var/run/mysql.sock ./mysql_slave_checker.rb

Requirements

The class depends on the mysql gem (duh…).

.plan

  • Add tests

  • Make this a gem

License

Kauperts::MysqlSlaveChecker is released under a 3-clause BSD-licence. See the LICENSE file for details.

About

Simple ruby abstraction to access the output from MySQL's SHOW SLAVE STATUS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages