mysql2

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

npm says / week

npm says 24,822,753

real installs / week

≈ 24.8M

high confidence

noise under 1% of npm's count, so filtering barely changes it.

Mirror spikes and crawlers removed. CI and dependency installs still count, so this is not a head count. Snapshot from the daily build of Nov 26, 2026, last 7 days of npm data. With JavaScript on, this page recomputes it live from the npm API.

How many people use mysql2?

npm counted 24,822,753 downloads of mysql2 in the last 7 days. Nobody can count people exactly, npm included: it does not record who downloaded what. After removing mirror spikes and crawlers, about 24.8M look like real installs. At this scale most of them come from CI, builds and other packages that depend on mysql2, so the number of people behind them is far smaller.

Is mysql2 still maintained?

Most likely yes, going by its releases. The latest version, 3.24.6, came out on Oct 13, 2026. The last 12 months saw 37 stable releases, typically 7 days apart, plus 89 pre-releases. It was first published on Apr 17, 2013. npm lists 1 maintainer.

Is mysql2 still used?

Downloads with publish spikes removed are up 65% over 3 months and up 279% over 11 months. For scale, the median of the 582 packages we track, which lean towards today's most downloaded, is up 184% over 11 months, so this one is ahead of that. Last week, 98% of downloads above the crawler floor were on major version 3, the latest one; the most used single version was 3.24.4, with 24%. Weekdays get 1.7× the downloads of weekends, which fits people at work, though CI follows the same rhythm. Crawlers account for about 348 downloads a week, roughly 1 per version.

Monthly downloads of mysql2

The busiest month was Oct 2026, with about 2,904,846 downloads a day once publish spikes are removed; the quietest was Dec 2025 (the holiday season), with about 857,887.

monthnpm downloadspublish spikes removedreal installsvs month before
Oct 2026 78,430,846 0 78.4M up 21%
Sep 2026 72,118,022 0 72.1M up 16%
Aug 2026 64,507,693 0 64.5M up 9%
Jul 2026 59,163,994 0 59.1M–59.2M up 11%
Jun 2026 51,449,630 0 51.4M up 16%
May 2026 45,748,054 0 45.7M up 14%
Apr 2026 38,947,290 0 38.9M about flat
Mar 2026 38,367,632 0 38.4M up 15%
Feb 2026 30,021,917 0 30M up 17%
Jan 2026 28,504,041 0 28.5M up 7%
Dec 2025 26,594,494 0 26.6M —

Whole months through Oct 31, 2026. Publish spikes are found day by day and summed per month. Real installs apply this week's crawler share to each month's downloads (the upper end also keeps the removed spikes), so they follow npm's curve rather than measure it. The change compares spike-free downloads per day.

How the estimate works

  1. Cut the spike every new version gets from mirrors and scanners in its first days.
  2. Subtract the crawler floor: the flat count crawlers download from every version each week.
  3. Show what is left as a range, with a confidence level. It still includes CI and dependency installs, so it is not a count of people.

Read the methodology