## 29.11 MySQL Ruby APIs

[29.11.1 The MySQL/Ruby API](apis-ruby-mysqlruby.html)
[29.11.2 The Ruby/MySQL API](apis-ruby-rubymysql.html)

[]()

 The `mysql2` Ruby gem provides an API for connecting to MySQL, performing queries, and iterating through results; it is intended to support MySQL 5.6, 5.7, and 8.0. For more information, see the [`mysql2` page at RubyGems.org](https://rubygems.org/gems/mysql2/) or the project's [GitHub page](https://github.com/brianmario/mysql2).

 For background and syntax information about the Ruby language, see [Ruby Programming Language](http://www.ruby-lang.org).

