</>PackageGraphPackageGraph

mysql2

npmv3.23.0TypeScript

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

12.4M
Weekly downloads
1
Dependents
34
Dependencies
88/100
Popularity

Overview

mysql2 is an npm package that fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS. It is extremely widely used, with about 12.4M downloads per week and 1 known dependents in the graph. The latest version is 3.23.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (12.4M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (34 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Relationship graph

Dependencies (left) and dependents (right) of mysql2.

Dependencies

Dev (25)

@eslint/eslintrc ^3.3.3@eslint/js ^9.39.2@eslint/markdown ^8.0.1@ianvs/prettier-plugin-sort-imports ^4.7.1@pokujs/multi-suite ^1.0.0@rollup/plugin-commonjs ^29.0.2@rollup/plugin-json ^6.1.0@rollup/plugin-node-resolve ^16.0.3@types/node ^26.0.0@typescript-eslint/eslint-plugin ^8.56.0@typescript-eslint/parser ^8.56.0assert-diff ^3.0.4benchmark ^2.1.4c8 ^11.0.0error-stack-parser ^2.1.4eslint-config-prettier ^10.1.8eslint-plugin-async-await ^0.0.0eslint-plugin-prettier ^5.5.5globals ^17.3.0poku ^4.1.0portfinder ^1.0.38prettier ^3.8.1rollup ^4.59.0tsx ^4.21.0typescript ^5.9.3

Used by

Popular packages that depend on mysql2.

Alternatives to mysql2

Frequently installed together

Version history

VersionPublishedLicense
3.23.0latest4 days agoMIT
3.22.7-canary.6b933f66 days agoMIT
3.22.7-canary.a26ff148 days agoMIT
3.22.7-canary.5034e579 days agoMIT
3.22.612 days agoMIT
3.22.6-canary.1b927a912 days agoMIT
3.22.51 month agoMIT
3.22.5-canary.2af33a11 month agoMIT
3.22.41 month agoMIT
3.22.32 months agoMIT
3.22.3-canary.e72f923d2 months agoMIT
3.22.22 months agoMIT
3.22.2-canary.c79a3f323 months agoMIT
3.22.13 months agoMIT
3.22.1-canary.5b6206c83 months agoMIT
3.22.1-canary.cb5adccb3 months agoMIT
3.22.03 months agoMIT
3.21.2-canary.ab131de53 months agoMIT
3.21.2-canary.49a64cca3 months agoMIT
3.21.2-canary.884bec563 months agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install mysql2?

Run `npm install mysql2` to add mysql2 to your npm project.

What license is mysql2 released under?

mysql2 is distributed under the MIT license.

How popular is mysql2?

mysql2 has approximately 12,397,777 downloads per week and 1 known dependent packages.