Ruby/Mysql2 - Mysql2 compatible pure Ruby library

Ruby/Mysql2 is a Mysql2 compatible pure Ruby library.

Installing

gem install ruby-mysql2

Usage

See original README.

Incompatiblity

  • Ruby/Mysql2 does not read MySQL config file such as my.cnf.
  • Only caching_sha2_password, mysql_native_password and sha256_password authentication methods are supported.
  • Mysql2::EM does not exist.