mysql2 (Ruby)

A Ruby MySQL library that binds to libmysql, built for the common case of connecting, querying, and iterating on results.


About

The Mysql2 gem deliberately avoids a 1:1 mapping of the C API. It focuses on connecting, querying, and iterating on results, forces UTF-8 or binary for the connection, and uses encoding-aware MySQL API calls where it can.

It’s released under the MIT license. It’s a separate project from the Node.js mysql2 driver.

Category Software & Tools
Subcategory Connectors & Drivers
✎ Suggest an update

Community feedback

This space is for grounded, evaluable experience — versions used, environments, what you measured or observed, and how it behaves alongside other software. General impressions without supporting detail may be removed. Sign in to write one; posts are tied to a verified identity, not anonymous.