mysql2 2.3.2
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
mysql2@2.3.2 was published on 2021-10-16. Its manifest declares 8 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >= 8.0.
All mysql2 versions · Permanent reference to 2.3.2 · Latest release
Package specifications
| Version | 2.3.2 |
|---|---|
| License declaration | MIT |
| Published | 2021-10-16T06:08:46.680Z |
| Node.js requirement | >= 8.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 8 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 443.45 KiB |
| Published file count | 90 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | index.js |
| Side effects declaration | Not declared |
| Direct advisories | 7 |
| Resolved graph dependencies | 12 |
| Repository stars | 4391 |
| Repository forks | 684 |
Install mysql2 2.3.2
npm install mysql2@2.3.2 pnpm add mysql2@2.3.2 yarn add mysql2@2.3.2
Runtime dependencies
- long ^4.0.0
- denque ^2.0.1
- lru-cache ^6.0.0
- seq-queue ^0.0.5
- sqlstring ^2.3.2
- iconv-lite ^0.6.3
- generate-function ^2.3.1
- named-placeholders ^1.1.2
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.
- denque@2.1.0 — direct
- generate-function@2.3.1 — direct
- iconv-lite@0.6.3 — direct
- is-property@1.0.2 — indirect
- long@4.0.0 — direct
- lru-cache@6.0.0 — direct
- lru.min@1.1.5 — indirect
- named-placeholders@1.1.6 — direct
- safer-buffer@2.1.2 — indirect
- seq-queue@0.0.5 — direct
- sqlstring@2.3.3 — direct
- yallist@4.0.0 — indirect
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-Review | 2/10 — Found 5/17 approved changesets -- score normalized to 2 |
|---|---|
| Maintained | 10/10 — 30 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10 |
| Security-Policy | 10/10 — security policy file detected |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 4/10 — dependency not pinned by hash detected -- score normalized to 4 |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| Packaging | 10/10 — packaging workflow detected |
| SAST | 9/10 — SAST tool detected but not run on all commits |
Evidence and freshness
- https://registry.npmjs.org/mysql2/2.3.2 — retrieved 2026-10-31T18:48:28.179Z
- https://api.deps.dev/v3/systems/npm/packages/mysql2/versions/2.3.2 — retrieved 2026-10-31T18:48:28.601Z
- https://api.deps.dev/v3/systems/npm/packages/mysql2/versions/2.3.2:dependencies — retrieved 2026-10-31T18:48:28.633Z
- https://api.deps.dev/v3/projects/github.com%2Fsidorares%2Fnode-mysql2 — retrieved 2026-10-29T10:44:59.862Z (stale snapshot; refresh pending)