mysql8 (Fork of mysqljs/mysql for MySQL 8)

JSON →
library 2.17.3 ·javascript
verified Jun 5, 2026

A community fork of the official mysqljs/mysql package (v2.17.3) to ensure compatibility with MySQL 8 authentication and features. This package provides a pure JavaScript, no-compile MySQL driver for Node.js (>=0.6). It offers connection pooling, prepared statements, streaming, and transaction support. It is an active drop-in replacement for the original mysql package, which has been in maintenance mode. Note that the original mysql package is no longer actively maintained; the mysql8 fork addresses issues like caching_sha2_password support. However, for new projects, the mysql2 package is recommended due to better performance, promise support, and ongoing maintenance.