sidorares/node-mysql2
:zap: fast mysqljs/mysql compatible mysql driver for node.js observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 7
- age_days: 4886
- days_rel: 9
- days_push: 8
- n_releases_24m: 50
Adoption not part of the score
4383 stars · 679 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
MySQL2 is a fast, MySQL-compatible database driver for Node.js, largely API-compatible with mysqljs/mysql. It supports prepared statements, connection pooling, streaming, and a promise-based API.
Use cases
- connect to a MySQL database from Node.js
- run parameterized queries with prepared statements
- manage a pool of MySQL connections for a web app
- drop-in replacement for mysqljs/mysql with better performance
- stream large MySQL query results
- use MySQL with async/await via promise wrapper
When to choose
- you need a MySQL or MariaDB driver in Node.js
- you want mysqljs/mysql compatibility with prepared statements and promises
- performance-sensitive database access is required
When to avoid
- you use PostgreSQL or another non-MySQL database
- you need an ORM rather than a raw driver
- you are not on Node.js
Facets
library · maturity stable
database-driver database databases backend web-development cross-platform mysql sql prepared-statements connection-pooling promise-api typescript nodejs
2 sources
- readme: https://github.com/sidorares/node-mysql2 · fetched 2026-08-28 · 79f80d5c55c6
- homepage: https://sidorares.github.io/node-mysql2/ · fetched 2026-08-29 · 6e0385fee952
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sidorares/node-mysql2 | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="sidorares/node-mysql2")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem