MySQL 8.4 Reference Manual  /  Connectors and APIs  /  MySQL Ruby APIs

31.11 MySQL Ruby API 接口

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.