MySQL 8.4 Reference Manual Including MySQL NDB Cluster 8.4

31.11 MySQL Ruby APIs

The mysql2 Ruby gem provides an API for connecting to MySQL, performing queries, and iterating through results; it is intended to support MySQL 5.7 and MySQL 8.0. For more information, see the mysql2 page at RubyGems.org or the project's GitHub page.

For background and syntax information about the Ruby language, see Ruby Programming Language.