mysql2 breaking changes
mysql2 0.5.0 (March 21, 2018) is its newest release with breaking changes, 3 of them. The first: Drops support for MySQL 5.0 and 5.1 in mysql2 0.5.0. Every breaking API change we have recorded in mysql2 on RubyGems: 9 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.5.7. Source repository
Its 0.5.0 release requires Ruby 2.0 or later. Ruby end of life dates.
mysql2 0.5.0 breaking changes
- Removed
MySQL 5.0 and 5.1 are no longer supported; MySQL 5.5 or higher is required. github.com - Removed
Ruby 1.8.7 and Ruby 1.9.3 are no longer supported; Ruby 2.0 or higher is required. github.com - Behavior changed
Rails 4.x users should pin the gem to mysql2 '~> 0.4.0' to avoid the 0.5.x upgrade; Rails 4.2.11 and higher work with 0.5.x. github.com
mysql2 0.4.0 breaking changes
- Behavior changed
Error messages now have unrecognized characters stripped using String#encode, so code that matches exact error text may need updating. github.com - Behavior changed
Wrapping queries in Timeout::timeout no longer interrupts them, so code that relied on that timeout must use another mechanism. github.com
mysql2 0.3.0 breaking changes
- Removed
The ActiveRecord adapter was moved into Rails 3.1 and is no longer part of mysql2. Code that loads the adapter from this gem must switch to the copy shipped with Rails 3.1. github.com
mysql2 0.2.0 breaking changes
- Removed
The ActiveRecord adapter is no longer shipped in this gem. Users of the 2.3.x line need the adapter from a separate gem or from Rails 2.3.9. github.com - Removed
The Sequel adapter is no longer part of this gem and is now included in Sequel 3.15.0 core. github.com - Behavior changed
Code that sends a new query before fetching the pending result of the previous query will now fail with an error. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.