Skip to content
JS
Package

mysql

A node.js driver for mysql. It is written in JavaScript, does not require compiling, and is 100% MIT licensed.

v2.18.1, 23 Jan 2020MIT-Types: NoneDatabase clients and drivers
$ npm install mysql

Key numbers

As of 25 Sept 2026
Weekly downloads
934.1k
+14% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
6 years ago
v2.18.1
GitHub stars
18.6k
2.5k forks
Open issues / PRs
141 / 35
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.4m (25 Aug 2026)Low 581.6k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

934,087 downloads last week. The 12-month change of +14% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
054 in total
Latest version
2.18.1, 23 Jan 20206 years ago
First published
3 Jan 2011
Last push to GitHub
25 Jun 2024821 days before the snapshot
Repository archived
No
Open issues
141
Open pull requests
35
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 9 Jan 2014
  2. v0 first release 0.1.0, 3 Jan 2011

Recent releases

VersionPublished
2.18.123 Jan 2020
2.18.021 Jan 2020
2.17.118 Apr 2019
2.17.018 Apr 2019
2.16.018 Jul 2018
2.15.05 Oct 2017
2.14.11 Aug 2017
2.14.026 Jul 2017
2.13.024 Jan 2017
2.12.03 Nov 2016
2.11.18 Jun 2016
2.11.06 Jun 2016
2.10.213 Jan 2016
2.10.111 Jan 2016
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
>= 0.6
Runtimes
-
Unpacked size (npm)
470 kB
Dependencies (4)
sqlstringsafe-bufferbignumber.jsreadable-stream
npm install mysql
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mysql@2.18.1/
  • unpkghttps://unpkg.com/mysql@2.18.1/
  • esm.shhttps://esm.sh/mysql@2.18.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.