Skip to main content

mysql2

v3.24.6SAFE Risk

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

A+100/100
Install Command
npm install mysql2
orpnpm add mysql2
Typosquat Defense
Authentic Name

No similarity to known typosquatting targets.

Lifecycle Scripts
Clean Execution

Zero preinstall or postinstall arbitrary execution hooks.

License Type
MIT

Permissive open-source license. Safe for enterprise & proprietary software.

Package Specifications

Unpacked Size
615.3 KB
Dependencies
7
Maintainers
1
Last Published
Oct 13, 2026
Free VS Code Extension

Detect Supply Chain Attacks Directly in Your Editor

Get instant CodeLens risk scores, typosquatting warnings, and license audits right inside your package.json file with zero configuration.

Install Dependency Risk Lens

Frequently Asked Questions

Is mysql2 safe to use in production?
mysql2 received a Security Grade of A+ (100/100) with a risk evaluation of SAFE. It contains zero malicious postinstall scripts.
What license does mysql2 use?
mysql2 is licensed under the MIT license (PERMISSIVE). This is a permissive open-source license suitable for commercial applications.
How do I install mysql2?
Install it via NPM using: npm install mysql2, or via PNPM: pnpm add mysql2, or Yarn: yarn add mysql2.