Port details
rubygem-mysql2 Simple, fast MySQL library for Ruby, binding to libmysql
0.5.7 databases Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.5.7Version of this port present on the latest quarterly branch.
Maintainer: ruby@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2013-01-23 02:26:43
Last Update: 2025-10-13 06:25:26
Commit Hash: 01a8816
Also Listed In: rubygems
License: MIT
WWW:
https://github.com/brianmario/mysql2
Description: #
The Mysql2 gem is meant to serve the extremely common use-case of connecting, querying and iterating on results. Some database libraries out there serve as direct 1:1 mappings of the already complex C API's available. This one is not.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
Expand this list (3 items)
Collapse this list.
  1. /usr/local/share/licenses/rubygem-mysql2-0.5.7/catalog.mk
  2. /usr/local/share/licenses/rubygem-mysql2-0.5.7/LICENSE
  3. /usr/local/share/licenses/rubygem-mysql2-0.5.7/MIT
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • rubygem-mysql2>0:databases/rubygem-mysql2
To install the port: #
cd /usr/ports/databases/rubygem-mysql2/ && make install clean
To add the package, run one of these commands:
  • pkg install databases/rubygem-mysql2
  • pkg install rubygem-mysql2
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: rubygem-mysql2
Flavors: #
there is no flavor information for this port.
distinfo: #
TIMESTAMP = 1759816998 SHA256 (rubygem/mysql2-0.5.7.gem) = ba09ede515a0ae8a7192040a1b778c0fb0f025fa5877e9be895cd325fa5e9d7b SIZE (rubygem/mysql2-0.5.7.gem) = 90112

Packages (timestamps in pop-ups are UTC): #
rubygem-mysql2
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest0.5.70.5.70.5.40.5.6-
FreeBSD:14:quarterly0.5.70.5.7-0.5.6-
FreeBSD:15:latest0.5.70.5.7n/a0.5.6n/a
FreeBSD:15:quarterly0.5.70.5.7n/a-n/a
FreeBSD:16:latest0.5.70.5.7n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. ruby33 : lang/ruby33
  2. gem : devel/ruby-gems
Runtime dependencies: #
  1. rubygem-bigdecimal>=0 : math/rubygem-bigdecimal
  2. ruby33 : lang/ruby33
  3. gem : devel/ruby-gems
Library dependencies: #
  1. libmysqlclient.so.21 : databases/mysql80-client
Patch dependencies: #
  1. ruby33 : lang/ruby33
Extract dependencies: #
  1. ruby33 : lang/ruby33
  2. gem : devel/ruby-gems
This port is required by: #
for Run #
  1. www/redmine60

Deleted ports which required this port:

Expand this list of 7 deleted ports
  1. databases/rubygem-peek-mysql2*
  2. databases/rubygem-peek-mysql2-rails5*
  3. databases/rubygem-peek-mysql2-rails50*
  4. www/redmine4*
  5. www/redmine42*
  6. www/redmine50*
  7. www/redmine51*
  8. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options: #
No options to configure
Options name: #
databases_rubygem-mysql2
USES: #
gem mysql ssl
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (1 items)
Collapse this list.
  1. https://rubygems.org/downloads/
Collapse this list.
Port Moves
  • port moved here from databases/rubygem-mysql204 on 2021-12-21
    REASON: Remove obsoleted port. Use databases/rubygem-mysql2 instead

Number of commits found: 28 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.5.7
13 Oct 2025 06:25:26
commit hash: 01a881614973735473be94e16bbae192d8384dd6commit hash: 01a881614973735473be94e16bbae192d8384dd6commit hash: 01a881614973735473be94e16bbae192d8384dd6commit hash: 01a881614973735473be94e16bbae192d8384dd6 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
databases/rubygem-mysql2: Update to 0.5.7

Changes:	https://github.com/brianmario/mysql2/releases
0.5.6
21 Feb 2024 15:11:13
commit hash: 3cccc0a19b6828a1c71261113d8b6fd3fa3ff9a0commit hash: 3cccc0a19b6828a1c71261113d8b6fd3fa3ff9a0commit hash: 3cccc0a19b6828a1c71261113d8b6fd3fa3ff9a0commit hash: 3cccc0a19b6828a1c71261113d8b6fd3fa3ff9a0 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
databases/rubygem-mysql2: Update to 0.5.6

Changes:	https://github.com/brianmario/mysql2/releases
0.5.5
05 Feb 2023 15:50:09
commit hash: 4cb88eb0aab363dde413099744006bece5d3fc67commit hash: 4cb88eb0aab363dde413099744006bece5d3fc67commit hash: 4cb88eb0aab363dde413099744006bece5d3fc67commit hash: 4cb88eb0aab363dde413099744006bece5d3fc67 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
databases/rubygem-mysql2: Update to 0.5.5

Changes:	https://github.com/brianmario/mysql2/releases
0.5.4
14 Jan 2023 23:08:33
commit hash: 18c6e18276691edf5274406bf82a3b06792ff9aecommit hash: 18c6e18276691edf5274406bf82a3b06792ff9aecommit hash: 18c6e18276691edf5274406bf82a3b06792ff9aecommit hash: 18c6e18276691edf5274406bf82a3b06792ff9ae files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby

Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk

Notable changes are.

- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
  USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.

This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863

I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.

Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D37925
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
0.5.4
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.5.4
20 Jul 2022 14:21:07
commit hash: d076ad94e206dda108061fe99ddb860d93cc6d16commit hash: d076ad94e206dda108061fe99ddb860d93cc6d16commit hash: d076ad94e206dda108061fe99ddb860d93cc6d16commit hash: d076ad94e206dda108061fe99ddb860d93cc6d16 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
databases: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  "Choe, Cheng-Dae" whitekid
  *  "Mahdi Mokhtari <mokhi64@gmail.com>"
  *  "Meikel Brandmeyer" <ocaml-sqlite3-port@kotka.de>
  *  <hvo.pm@xs4all.nl>
  *  <jsmith@resonatingmedia.com>
  *  <ports@c0decafe.net>
  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Ade Lovett <ade@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alan Snelson <Alan@Wave2.org>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.5.4
13 May 2022 11:40:08
commit hash: f59d2bfc1798b04076abb3c16318ed370e6c48e5commit hash: f59d2bfc1798b04076abb3c16318ed370e6c48e5commit hash: f59d2bfc1798b04076abb3c16318ed370e6c48e5commit hash: f59d2bfc1798b04076abb3c16318ed370e6c48e5 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
databases/rubygem-mysql2: Update to 0.5.4

Changes:	https://github.com/brianmario/mysql2/releases
0.5.3
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
0.5.3
24 Jul 2020 07:49:57
Revision:543179commit hash: 3e335cfd57851ab0daeb16bd083afbaaa309bceecommit hash: 3e335cfd57851ab0daeb16bd083afbaaa309bceecommit hash: 3e335cfd57851ab0daeb16bd083afbaaa309bceecommit hash: 3e335cfd57851ab0daeb16bd083afbaaa309bceeOriginal commit files touched by this commit
sunpoet search for other commits by this committer
Update to 0.5.3

Changes:	https://github.com/brianmario/mysql2/releases
0.5.2
11 Nov 2019 17:48:55
Revision:517272commit hash: 4f3ba9dd8fed71a68491f20a40a30d24905f3224commit hash: 4f3ba9dd8fed71a68491f20a40a30d24905f3224commit hash: 4f3ba9dd8fed71a68491f20a40a30d24905f3224commit hash: 4f3ba9dd8fed71a68491f20a40a30d24905f3224Original commit files touched by this commit
mfechner search for other commits by this committer
Upgrade to 0.5.2 which is required for www/redmine4.

PR:		234005
Submitted by:	mikael.urankar@gmail.com
Reviewed by:	mfechner
0.4.10
15 Nov 2017 19:55:59
Revision:454274commit hash: 418a6a682d5e262517d872d48af0e875e4564d96commit hash: 418a6a682d5e262517d872d48af0e875e4564d96commit hash: 418a6a682d5e262517d872d48af0e875e4564d96commit hash: 418a6a682d5e262517d872d48af0e875e4564d96Original commit files touched by this commit
sunpoet search for other commits by this committer
Update to 0.4.10

Changes:	https://github.com/brianmario/mysql2/releases
0.4.9
11 Aug 2017 21:38:57
Revision:447802commit hash: c912d53a5bf4eb678a030178a4e91e93f1861d56commit hash: c912d53a5bf4eb678a030178a4e91e93f1861d56commit hash: c912d53a5bf4eb678a030178a4e91e93f1861d56commit hash: c912d53a5bf4eb678a030178a4e91e93f1861d56Original commit files touched by this commit
sunpoet search for other commits by this committer
Update to 0.4.9

Changes:	https://github.com/brianmario/mysql2/releases
0.4.8
11 Jul 2017 17:00:16
Revision:445517commit hash: 386385d3d963aafaee2841a2d2e96b4caa80b04fcommit hash: 386385d3d963aafaee2841a2d2e96b4caa80b04fcommit hash: 386385d3d963aafaee2841a2d2e96b4caa80b04fcommit hash: 386385d3d963aafaee2841a2d2e96b4caa80b04fOriginal commit files touched by this commit
sunpoet search for other commits by this committer
Update to 0.4.8

Changes:	https://github.com/brianmario/mysql2/releases
0.4.7
02 Jul 2017 06:47:31
Revision:444867commit hash: d087ba3eea8c7ea45154a3e380a9d22a9a54e64ccommit hash: d087ba3eea8c7ea45154a3e380a9d22a9a54e64ccommit hash: d087ba3eea8c7ea45154a3e380a9d22a9a54e64ccommit hash: d087ba3eea8c7ea45154a3e380a9d22a9a54e64cOriginal commit files touched by this commit
sunpoet search for other commits by this committer
Update to 0.4.7

Changes:	https://github.com/brianmario/mysql2/releases
0.4.6
26 Jun 2017 03:24:18
Revision:444338commit hash: cbebc75fb07b4afcf44b9776b3d2c2cd50bbafd9commit hash: cbebc75fb07b4afcf44b9776b3d2c2cd50bbafd9commit hash: cbebc75fb07b4afcf44b9776b3d2c2cd50bbafd9commit hash: cbebc75fb07b4afcf44b9776b3d2c2cd50bbafd9Original commit files touched by this commit
sunpoet search for other commits by this committer
Use USES=mysql
0.4.6
05 May 2017 15:35:51
Revision:440178commit hash: 3e252ae4d1060cd79777254c46fcf8e665519656commit hash: 3e252ae4d1060cd79777254c46fcf8e665519656commit hash: 3e252ae4d1060cd79777254c46fcf8e665519656commit hash: 3e252ae4d1060cd79777254c46fcf8e665519656Original commit files touched by this commit
sunpoet search for other commits by this committer
Update to 0.4.6

- Add LICENSE_FILE
- Add USES=ssl

Changes:	https://github.com/brianmario/mysql2/releases
0.4.5
28 Dec 2016 15:00:20
Revision:429779commit hash: 2b64a7056d2a78cc7dd8027fc37539919ad1325ccommit hash: 2b64a7056d2a78cc7dd8027fc37539919ad1325ccommit hash: 2b64a7056d2a78cc7dd8027fc37539919ad1325ccommit hash: 2b64a7056d2a78cc7dd8027fc37539919ad1325cOriginal commit files touched by this commit
swills search for other commits by this committer
databases/rubygem-mysql2: update to 0.4.5
0.3.20
27 Apr 2016 21:57:32
Revision:414136commit hash: 462519941e56e838fd1fff77ecc3ebeb554fcb80commit hash: 462519941e56e838fd1fff77ecc3ebeb554fcb80commit hash: 462519941e56e838fd1fff77ecc3ebeb554fcb80commit hash: 462519941e56e838fd1fff77ecc3ebeb554fcb80Original commit files touched by this commit
swills search for other commits by this committer
Convert USES=gem:autoplist to USES=gem since autoplist is default
0.3.20
27 Apr 2016 16:36:42
Revision:414118commit hash: b3e8fe8d85d1f32b6b8813589ed8637a8accb185commit hash: b3e8fe8d85d1f32b6b8813589ed8637a8accb185commit hash: b3e8fe8d85d1f32b6b8813589ed8637a8accb185commit hash: b3e8fe8d85d1f32b6b8813589ed8637a8accb185Original commit files touched by this commit
swills search for other commits by this committer
create USES=gem and update rubygem- ports to use it

Note that for now ports still have to have USE_RUBY=yes to use USES=gem

PR:		209041
Differential Revision:	https://reviews.freebsd.org/D6070
0.3.20
26 Aug 2015 16:34:42
Revision:395377commit hash: 50029ce9a54b90734ef73b82fd95faaa1dc1c43dcommit hash: 50029ce9a54b90734ef73b82fd95faaa1dc1c43dcommit hash: 50029ce9a54b90734ef73b82fd95faaa1dc1c43dcommit hash: 50029ce9a54b90734ef73b82fd95faaa1dc1c43dOriginal commit files touched by this commit
sunpoet search for other commits by this committer
- Update to 0.3.20

Changes:	https://github.com/brianmario/mysql2/releases
0.3.19
31 Jul 2015 16:26:23
Revision:393344commit hash: 2f02fcf747ed3d62f84fabd1b02c4659fb93bc01commit hash: 2f02fcf747ed3d62f84fabd1b02c4659fb93bc01commit hash: 2f02fcf747ed3d62f84fabd1b02c4659fb93bc01commit hash: 2f02fcf747ed3d62f84fabd1b02c4659fb93bc01Original commit files touched by this commit
sunpoet search for other commits by this committer
- Update to 0.3.19

Changes:	https://github.com/brianmario/mysql2/releases
0.3.18
10 May 2015 20:16:55
Revision:385988commit hash: e8de70956292609c90c37bc39933430bb9e2e6e8commit hash: e8de70956292609c90c37bc39933430bb9e2e6e8commit hash: e8de70956292609c90c37bc39933430bb9e2e6e8commit hash: e8de70956292609c90c37bc39933430bb9e2e6e8Original commit files touched by this commit
sunpoet search for other commits by this committer
- Update to 0.3.18
- Add LICENSE
- Update WWW

Changes:	https://github.com/brianmario/mysql2/releases
0.3.16
22 Aug 2014 18:46:57
Revision:365685commit hash: 0a927cde1063b1d62afddd12f17b9aa80d012b14commit hash: 0a927cde1063b1d62afddd12f17b9aa80d012b14commit hash: 0a927cde1063b1d62afddd12f17b9aa80d012b14commit hash: 0a927cde1063b1d62afddd12f17b9aa80d012b14Original commit files touched by this commit
swills search for other commits by this committer
databases/rubygem-mysql2: Update to 0.3.16
0.3.13
30 Oct 2013 02:26:17
Revision:332033commit hash: d155f618ebba19e2a09d50e21c45edde28bfadf0commit hash: d155f618ebba19e2a09d50e21c45edde28bfadf0commit hash: d155f618ebba19e2a09d50e21c45edde28bfadf0commit hash: d155f618ebba19e2a09d50e21c45edde28bfadf0Original commit files touched by this commit
swills search for other commits by this committer
- Add stage support
0.3.13
20 Sep 2013 16:13:49
Revision:327717commit hash: 36117d709704f772dbc3d305cda6923741791598commit hash: 36117d709704f772dbc3d305cda6923741791598commit hash: 36117d709704f772dbc3d305cda6923741791598commit hash: 36117d709704f772dbc3d305cda6923741791598Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
databases)
0.3.13
23 Jul 2013 03:48:38
Revision:323510commit hash: 48642cb3e40ba6402089d6617bcd24a21ab7d2facommit hash: 48642cb3e40ba6402089d6617bcd24a21ab7d2facommit hash: 48642cb3e40ba6402089d6617bcd24a21ab7d2facommit hash: 48642cb3e40ba6402089d6617bcd24a21ab7d2faOriginal commit files touched by this commit
swills search for other commits by this committer
- Update to 0.3.13
0.3.11
23 Jan 2013 02:26:31
Revision:310847commit hash: 4e6dfe0453d309100db729509db21332e1a31deacommit hash: 4e6dfe0453d309100db729509db21332e1a31deacommit hash: 4e6dfe0453d309100db729509db21332e1a31deacommit hash: 4e6dfe0453d309100db729509db21332e1a31deaOriginal commit files touched by this commit
swills search for other commits by this committer
Add rubygem-mysql2 0.3.11, simple, fast MySQL library for Ruby, binding
to libmysql.

PR:		ports/172115
Submitted by:	Kimo <kimor79@yahoo.com>

Number of commits found: 28