mysql2 2.3.0

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

mysql2@2.3.0 was published on 2021-08-05. Its manifest declares 8 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >= 8.0.

All mysql2 versions · Permanent reference to 2.3.0 · Latest release

Package specifications

Version2.3.0
License declarationMIT
Published2021-08-05T13:47:23.743Z
Node.js requirement>= 8.0
Type declarationsNot declared
Runtime dependency count8
Peer requirement count0
Optional dependency count0
Minified sizeMeasurement not available yet
Minified + gzipMeasurement not available yet
Unpacked distribution size462.23 KiB
Published file count91
Package typeNot declared
ES module entryNot declared
Default entryindex.js
Side effects declarationNot declared
Direct advisories7
Resolved graph dependencies12
Repository stars4391
Repository forks684

Install mysql2 2.3.0

npm install mysql2@2.3.0
pnpm add mysql2@2.3.0
yarn add mysql2@2.3.0

Runtime dependencies

Peer requirements

  • None declared

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.

Known direct advisories

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