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
| Version | 3.24.6 |
|---|---|
| License declaration | MIT |
| Published | 2026-10-13T14:33:39.196Z |
| Node.js requirement | >= 8.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 7 |
| Peer requirement count | 1 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 615.30 KiB |
| Published file count | 135 |
| Package type | commonjs |
| ES module entry | Not declared |
| Default entry | index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 9 |
| Repository stars | 4391 |
| Repository forks | 684 |
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
- long ^5.3.2
- lru.min ^1.1.4
- iconv-lite ^0.7.3
- sql-escaper ^1.5.1
- aws-ssl-profiles ^1.1.2
- generate-function ^2.3.1
- named-placeholders ^1.1.6
Peer requirements
- @types/node >= 8
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- aws-ssl-profiles@1.1.2 — direct
- generate-function@2.3.1 — direct
- iconv-lite@0.7.3 — direct
- is-property@1.0.2 — indirect
- long@5.3.2 — direct
- lru.min@1.1.5 — direct
- named-placeholders@1.1.6 — direct
- safer-buffer@2.1.2 — indirect
- sql-escaper@1.5.2 — direct
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-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/3.24.6 — retrieved 2026-10-29T10:44:59.050Z
- https://api.deps.dev/v3/systems/npm/packages/mysql2/versions/3.24.6 — retrieved 2026-10-29T10:44:59.720Z
- https://api.deps.dev/v3/systems/npm/packages/mysql2/versions/3.24.6:dependencies — retrieved 2026-10-29T10:44:59.740Z
- https://api.deps.dev/v3/projects/github.com%2Fsidorares%2Fnode-mysql2 — retrieved 2026-10-29T10:44:59.862Z