connect-mysql2

JSON →
library 2.2.6 ·javascript
verified Jun 5, 2026

connect-mysql2 is a MySQL-backed session store for Express/Connect applications, version 2.2.6. It uses the mysql2 driver and provides features like connection pooling, session encryption, keepalive, and automatic cleanup. Its release cadence is low; it is actively maintained. Compared to alternatives like connect-mysql (which uses the older mysql driver), it benefits from the mysql2 performance and promise support. Not intended for use with MySQL 2.x, but rather with the mysql2 npm package. Sessions from earlier versions are not backwards-compatible with v2.2.