sidorares/node-mysql2

:zap: fast mysqljs/mysql compatible mysql driver for node.js

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 23 minutes ago
Type:Library / SDKCategory(s):Relational & SQL DatabasesDatabases & Storage
Added to GitGenius on September 15th, 2026
Created on April 17th, 2013
Open Issues & Pull Requests: 445 (+0)
GitHub issues: Enabled
Number of forks: 680
Total Stargazers: 4,385 (+0)
Total Subscribers: 49 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 16.8 hours
Mean response time: 84.8 days
90th percentile: 151.6 days
Tracked items: 200

Most active contributors

Sign in to see contributor activity.

How this project is maintained

About 13% of issues opened in the past year have never received a reply. 94% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "question" is answered fastest, typically in about 6 hours, while "needs investigation" waits about 10 days. 61% of issues opened in the past year have been closed, leaving a working backlog. Three people close 86% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 78
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 989 days
Stale 30+ days: 72
Stale 90+ days: 66

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • needs reproduction (31)
  • needs investigation (22)
  • bug (21)
  • question (18)
  • typescript (18)
  • feature request (17)
  • documentation (10)
  • enhancement (7)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

node-mysql2 is a MySQL client driver for Node.js that prioritizes performance while maintaining compatibility with the established mysqljs/mysql API.

The tool addresses the need for efficient database connectivity in Node.js applications by providing a faster alternative to the original mysql package. It implements the MySQL protocol directly, allowing applications to query MySQL databases with reduced overhead. The driver supports both callback-based and promise-based query execution, accommodating different coding styles and async patterns. Connection pooling is built in, enabling applications to reuse database connections rather than creating new ones for each query, which significantly improves throughput under load.

Developers should choose this driver if they are running Node.js applications that need to communicate with MySQL databases and want better performance than the original mysql package without rewriting their codebase, since the API remains compatible. It suits projects ranging from small scripts to larger applications that require connection pooling and prepared statements. The tool is particularly valuable for applications where database query performance directly impacts overall application responsiveness. Teams already using mysqljs/mysql can often adopt this as a drop-in replacement with minimal code changes.

The project maintains active engagement with its codebase through regular updates and responsiveness to issues. Pull requests receive timely review and integration. The maintainer demonstrates commitment to both fixing bugs and implementing feature requests from the community. Development activity shows consistent attention to the repository with ongoing refinement of the driver's capabilities and performance characteristics.