---
title: "mysql2 0.5.0 Breaking Changes on RubyGems | Since.dev"
description: "What each mysql2 release removed, renamed or changed: 9 breaking changes in 4 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/mysql2
last_updated: 2026-12-04
---

# 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

Latest version `0.5.7`. [Source repository](https://github.com/brianmario/mysql2)

Its 0.5.0 release requires Ruby 2.0 or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [0.2.0](#v-0-2-0) to [0.5.0](#v-0-5-0): 6 breaking changes in 3 versions.

## mysql2 0.5.0 breaking changes

mysql2 0.5.0, released March 21, 2018: 3 breaking changes.

- **Removed**  

MySQL 5.0 and 5.1 are no longer supported; MySQL 5.5 or higher is required. [github.com](https://github.com/brianmario/mysql2/releases/tag/0.5.0)
- **Removed**  

Ruby 1.8.7 and Ruby 1.9.3 are no longer supported; Ruby 2.0 or higher is required. [github.com](https://github.com/brianmario/mysql2/releases/tag/0.5.0)
- **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](https://github.com/brianmario/mysql2/releases/tag/0.5.0)

## mysql2 0.4.0 breaking changes

mysql2 0.4.0, released September 8, 2015: 2 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](https://github.com/brianmario/mysql2/releases/tag/0.4.0)
- **Behavior changed**  

Wrapping queries in Timeout::timeout no longer interrupts them, so code that relied on that timeout must use another mechanism. [github.com](https://github.com/brianmario/mysql2/releases/tag/0.4.0)

## mysql2 0.3.0 breaking changes

mysql2 0.3.0, released April 27, 2011: 1 breaking change.

- **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](https://github.com/brianmario/mysql2/releases/tag/0.3.0)

## mysql2 0.2.0 breaking changes

mysql2 0.2.0, released August 16, 2010: 3 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](https://github.com/brianmario/mysql2/releases/tag/0.2.0)
- **Removed**  

The Sequel adapter is no longer part of this gem and is now included in Sequel 3.15.0 core. [github.com](https://github.com/brianmario/mysql2/releases/tag/0.2.0)
- **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](https://github.com/brianmario/mysql2/releases/tag/0.2.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
