Tiny MySQL clinet dependent on mysql command.
Add this line to your application's Gemfile:
gem 'tiny_mysql'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tiny_mysql
require 'pp'
mysql = TinyMysql.new(username: 'scott', password: 'tiger', database: 'mysql')
pp mysql.query('show tables')
# => [{"Tables_in_mysql"=>"columns_priv"},
# {"Tables_in_mysql"=>"db"},
# {"Tables_in_mysql"=>"event"},
# ...