mysql2

fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS

mysql2@3.24.6 was published on 2026-10-13. Its manifest declares 7 runtime dependencies and 1 peer requirement. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >= 8.0.

All mysql2 versions · Permanent reference to 3.24.6

Package specifications

Version3.24.6
License declarationMIT
Published2026-10-13T14:33:39.196Z
Node.js requirement>= 8.0
Type declarationsBundled declarations
Runtime dependency count7
Peer requirement count1
Optional dependency count0
Minified sizeMeasurement not available yet
Minified + gzipMeasurement not available yet
Unpacked distribution size615.30 KiB
Published file count135
Package typecommonjs
ES module entryNot declared
Default entryindex.js
Side effects declarationNot declared
Direct advisories0
Resolved graph dependencies9
Repository stars4391
Repository forks684

Install mysql2 3.24.6

npm install mysql2@3.24.6
pnpm add mysql2@3.24.6
yarn add mysql2@3.24.6

Runtime dependencies

Peer requirements

Optional dependencies

  • None declared

Resolved dependency graph

This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.

How to interpret the specifications

Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.

Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.

OpenSSF repository checks

Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.

Code-Review2/10 — Found 5/17 approved changesets -- score normalized to 2
Maintained10/10 — 30 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10
Security-Policy10/10 — security policy file detected
CII-Best-Practices0/10 — no effort to earn an OpenSSF best practices badge detected
Dangerous-Workflow10/10 — no dangerous workflow patterns detected
Token-Permissions0/10 — detected GitHub workflow tokens with excessive permissions
Binary-Artifacts10/10 — no binaries found in the repo
Pinned-Dependencies4/10 — dependency not pinned by hash detected -- score normalized to 4
License10/10 — license file detected
Fuzzing0/10 — project is not fuzzed
Branch-Protection0/10 — branch protection not enabled on development/release branches
Packaging10/10 — packaging workflow detected
SAST9/10 — SAST tool detected but not run on all commits

Evidence and freshness