#mysql2
Data API Client v2.1.0 is here! And it's BIG! 🚀

➡ New node-postgres (pg) & mysql2 compat layers
➡ Now works with Drizzle & Kysely ORMs
➡ Auto-retry for Aurora Serverless v2 scale to zero clusters
➡ Bug fixes

Release notes: github.com/jeremydaly/d...
Release v2.1.0 - PostgreSQL/MySQL2 Compatibility & Automatic Retries · jeremydaly/data-api-client
What's New ORM Compatibility Layers Drop-in replacements for pg and mysql2 drivers enable seamless integration with Drizzle ORM, Kysely, Knex, and other popular ORMs. // PostgreSQL compatibility im...
github.com
October 11, 2025 at 3:04 PM
CVE-2024-21511 - mysql2
The mysql2 library used in several projects (sidorares/mysql2, @rootio/mysql2, GitHub Actions/mysql2, and mysql2) has a security weakness that could allow an attacker to execute…

Too many irrelevant or confusing CVEs? Use stackflag.com

#mysql2 #sidorares #npm #CVE #infosec
CVE-2024-21511: mysql2 packages can let attackers run unauthorized code
The mysql2 library used in several projects (sidorares/mysql2, @rootio/mysql2, GitHub Actions/mysql2, and mysql2) has a security weakness that could allow.
stackflag.com
September 11, 2026 at 2:20 PM
The first version of Data API Client made working with Aurora Serverless easier. V2 makes it magical! ✨

A complete TypeScript rewrite with ORM support, mysql2/pg compatibility, and intelligent parsing so your Aurora Serverless v2 database just works.

jeremydaly.com/announcing-d...
Announcing Data API Client v2 - Jeremy Daly
A complete TypeScript rewrite with drop-in ORM support, full mysql2/pg compatibility layers, and smarter parsing for Aurora Serverless v2's Data API.
jeremydaly.com
October 13, 2025 at 5:10 PM
CVE-2024-21508 - mysql2
The mysql2 code library used in Node.js applications can be tricked into running malicious commands. This could let an attacker take control of the system that uses the library.…

Too many irrelevant or confusing CVEs? Use stackflag.com

#mysql2 #rootio #npm #CVE #infosec
CVE-2024-21508: mysql2 library can let attackers execute code
The mysql2 code library used in Node.js applications can be tricked into running malicious commands.
stackflag.com
September 11, 2026 at 2:20 PM
An update for Wiki.js 2.5.309 was just released.

Includes:
- Many fixes and improvements from the community.
- Hide unfinished features from the UI.
- Updated image to Node.js 24.x.

See github.com/requarks/wik... for details.
Release v2.5.309 · requarks/wiki
✨ New Features 5c80184 - add support for database connection via socketPath when using mysql2 driver (PR #7839 by @jjabba) 🐛 Bug Fixes cd77f36 - requests without user-agent causing error 500 (PR...
github.com
January 3, 2026 at 9:01 AM
#AIが苦手な方は注意
#Ruby-MySQLが苦手な方は注意
システム修繕、やっと一つ目が終わった…筈だ。
バグが分からなくてAIに訊いたら、相変わらずバグがボロボロと。
MySQL2初めて使ったけど、仕様がガラリと変わって、
修正が大変だった。MySQL1ではArrayでクエリ結果を返すところを、
MySQL2ではHashで返してきた。
後々から代入値を誤らなくて済むメリットもあったが、
元々のが、MySQL1対応だったので修正に時間を要した。
ロジックバグも自力で直した。
2日間まともに寝てないよ。それでダウンして記憶にない。
皆様、まともな反応が出来なくて、ごめんなさいね。
August 14, 2026 at 2:02 PM
Install Sequelize stack:
npm i sequelize sequelize-typescript mysql2 reflect-metadata
npm i -D @types/validator
Enable experimentalDecorators + emitDecoratorMetadata in tsconfig.
February 16, 2026 at 10:57 PM
Aurora MySQL2.12.0リリースしました。このバージョンは、MySQL5.7.40 compatibilityとAurora MySQL2で初めて特定のMySQLバージョンとの互換性を取るものとなりました。また、セッションレベルでbinlog format/binlogの有効・無効を切り替えられるようになっています。詳細は https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/AuroraMySQL.Updates.2120.html
July 26, 2023 at 3:26 AM
New open source roundup: Rails batches schema reads (255 statements down to 6), node-mysql2 lands 3-6x perf wins, OpenAI Python SDK hits v3.0.0, and Starlette's native OTel tracing PR is one to watch. scoutapm.com/blog/this-we...
August 18, 2026 at 7:54 PM
3/5 Um dia vi um erro no MySQL2 (um projeto bem importante) que impedia usuários TS de compilar projetos, mas era tão fácil arrumar que preferi não passar vergonha.

Meses e nunca foi corrigido. Era literalmente UMA (1) palavra ser removida e pronto.

Criei coragem e mandei o PR.
September 9, 2024 at 9:11 AM
Heads up, #Rocky Linux 9 admins! Advisory RLEA-2024:2343 addresses security flaws in key Ruby database gems:

rubygem-pg (PostgreSQL adapter)

rubygem-mysql2 (MySQL adapter)
Includes RPMs for all architectures + performance tweaks. Read more: 👉 tinyurl.com/bdcvcvmf #Infosec #SysAdmin #Ruby
Security Advisory: Rocky Linux 9 Critical Update for Ruby Database Gems (RLEA-2024:2343)
Blog com notícias sobre, Linux, Android, Segurança , etc
tinyurl.com
July 28, 2025 at 8:07 PM
「PythonのmysqlclientやRubyのmysql2のようなクライアントライブラリには続々と問題報告が上がってきています」なるほどですね。MySQLとMariaDBでクライアントライブラリの制御方法が異なるのがまた厄介だな。
MariDB Connector/C がデフォルトでSSLを強制するようになった - methaneのブログ
MariaDB 11.4 がGAになり、SSLが自動で有効になるようになりました。合わせてMariaDB Connector/Cも3.4からデフォルトでSSLを利用し、かつサーバーの証明書を検証するようになりました。 これにより、MariaDB Connector/C 3.4以降のライブラリを利用してMySQLや古いMariaDBに接続する場合に、SSLで接続できないとか、証明書の検証に失敗するといった問題が発生するようになりました。 これらをリンクしたPythonのmysqlclientやRubyのmysql2のようなクライアントライブラリには続々と問題報告が上がってきています。 この問題に…
methane.hatenablog.jp
November 9, 2024 at 3:39 AM
Amazon Aurora MySQL2 (with MySQL 5.7 compatibility) Standard Support終了日が1年後となり、それに向けてドキュメントを公開しました。今後のスケジュールなどはドキュメントや定期的な通知でご案内していきますので、ドキュメントを定期的にご確認ください。
docs.aws.amazon.com/AmazonRDS/la...
Preparing for Amazon Aurora MySQL-Compatible Edition version 2 end of Standard Support - Amazon Auro...
Prepare to upgrade from Amazon Aurora MySQL-Compatible Edition version 2 to Aurora MySQL version 3 before version 2 reaches the end of its support period.
docs.aws.amazon.com
November 1, 2023 at 12:08 AM
#AI苦手な方は注意
あれからシステムにバグ報告を沢山貰っちゃって、
悠長にイラストどころではなくなった。
原因をAIに訊いたら、散々AIに怒られたよ。
しかしながら、通常の方法ではダメで画期的な方法をAIは考えてくれたよ。
それは、わたしにとってありがたかった。
デバッグのためにAIを使うどころが、AIの考えたシステムになりつつある。
MySQL2があんなに難しいシステムだとは思ってもいなかったよ。
バグ報告もそろそろ無くなってきたので、
今度こそはイラストを描くぞと決心しました。
バグが今度こそ出なければいいなと思いつつ、
イラストを描く準備に取り掛かるわたしであった。
もう暫く待ってね。
August 29, 2026 at 2:43 AM
Thanks for the heads-up! It’s vital to stay updated on your dependencies. For those using `mysql2`, make sure to check your package versions and patch to the latest release ASAP to stay secure.
September 11, 2026 at 2:56 PM
1/2

When using named parameters in mysql2 (nodejs)
it will parse any word starting with : as a possible param..
even in comments.
September 6, 2026 at 2:13 AM
2/2

now i doubt many people are sending queries with comments to mysql2
but this is something you should keep in mind.. because even AI couldn't
fix this one as i was busy banging my head against the wall for an hour.. 😩😩😩
September 6, 2026 at 2:13 AM
node-mysql2 just landed 10 perf fixes in one PR. Queries were serialized twice on MySQL 8+, binary rows allocated closures per column per row without typeCast, and text dates hit V8's slow path. Pure JS, no native modules. github.com/sidorares/no...
August 22, 2026 at 2:01 PM
God I hate rails sometimes. Can't get this god damn mysql2 gem working.
July 20, 2026 at 12:00 AM
anyone else ever had problems with RoR using mysql2 gen when connecting to RDS? the only solution was to use mysql
November 14, 2024 at 9:14 AM
How to Fix TLS/SSL Error with Mysql2 on Ruby for Windows dev.to/generatecode...
How to Fix TLS/SSL Error with Mysql2 on Ruby for Windows
When attempting to connect to a MySQL database from a Windows client using the mysql2 gem in Ruby,...
dev.to
May 14, 2025 at 8:18 PM
macOS だと Darwin だから変なところでビルドが通らなかったりする(mysql2 gem とか)
WSL2 だと単なる Ubuntu だからまあ普通にやってれば普通に通るし、一般的なデプロイ先環境ともそんな差異はないというところでも良い(今はコンテナデプロイする場合も多いけど)

ただし iOS / iPadOS 用のビルドだけはどうあがいてもできないので macOS を使う
December 17, 2024 at 12:04 AM