> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/connectors/other/mariadb-connector-ruby-guide.md).

# Ruby

Ruby connector overview for MariaDB, pointing to the mysql2 gem as the recommended library for connecting Ruby applications to MariaDB databases.

The MySQL API module for Ruby should generally work with MariaDB as well:

* [mysql2](https://rubygems.org/gems/mysql2)

<sub>*This page is: Copyright © 2026 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}
