MySQL2 Node.js Client

JSON →
library 3.22.1 ·javascript
verified May 27, 2026

mysql2 is a high-performance, native JavaScript MySQL client for Node.js, currently stable at version 3.22.1. It provides a robust and efficient way to interact with MySQL databases, emphasizing speed through a re-written protocol parser. The library maintains broad API compatibility with the popular 'Node MySQL' package while introducing advanced features such as comprehensive prepared statement support, binary log protocol, SSL/TLS encryption, and data compression. It also includes a first-class promise-based API wrapper for modern async/await patterns. mysql2 is under active development with a rapid release cadence, frequently pushing out bug fixes, performance improvements, and new features, including recent security enhancements like disabling the `mysql_clear_password` plugin by default and supporting `Symbol.dispose` for resource management.

total hits 16
actors 8 distinct systems
last hit 4d ago MetaBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
ChatGPT-User
1
Search engines
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · MY · 🇩🇪 Germany