connect-mysql

JSON →
library 4.0.0 ·javascript maintenance
verified Jun 5, 2026

A MySQL session store for the Connect/Express session middleware, version 4.0.0. It uses the node-mysql module for database connections and supports connection pooling, session encryption (AES-256-CTR), configurable retries, and automatic cleanup of expired sessions. Unlike generic session stores, it integrates directly with express-session and provides MySQL-specific features like keepalive pings. Release cadence is irregular; last release was in 2018. Key differentiators: built-in encryption and full MySQL pooling support. Note: v2.2 broke backward compatibility with previous session formats; sessions stored with older versions must be cleared or will be discarded with a warning.