NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2623 most downloaded on npm
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
Latest stable
3.24.6
Last release 1 months ago
13 Oct 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
329 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
resolve parser cache collision with dual typeCast connections
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
pass columnType to readDateTimeString
Nothing published for this version
Fix for SET NAMES utf8 causing an unknown encoding error (#3551) 0617813d21cf9de5fcbd4dd283eafc6d090eeeaf
Nothing published for this version
Nothing published for this version
add RegExp support to PoolCluster
Nothing published for this version
`disableEval`: add static parsers
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
PoolCluster: restoreNodeTimeout implementation
Nothing published for this version
fix datetime fields returned without time part when time is 00:00:00
Nothing published for this version
Nothing published for this version
Nothing published for this version
types: correct TypeCast's Next callback to return unknown
Nothing published for this version
typings: synchronize types of sqlstring
Nothing published for this version
resolve LRU conflicts, cache loss and premature engine breaking change
createPoolCluster: add pattern and selector to promise-based getConnection
fully support VECTOR type results (9576742 and https://github.com/sidorares/node-mysql2/commit/3659488d8736da0e7e5a5178811d50155e1a8155 )
handshake SSL error with AWS RDS
typeCast: ensure the same behavior for field.string() with query and execute
setMaxParserCache throws TypeError
stream: reads should emit the dataset number for each dataset (#2496, #2628)
connection config: remove keepAliveInitialDelay default value
security: sanitize fields and tables when using nestTables
security: sanitize timezone parameter value to prevent code injection - report by zhaoyudi (Nebulalab)
binary parser sometimes reads out of packet bounds when results contain null and typecast is false
revert breaking change in results creation
Fixes a potential RCE attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab
Fixes a potential parser cache poisoning attack vulnerability reported by Vsevolod Kokorin (Slonser) of Solidlab
types: support encoding for string type cast
introduce typeCast for execute method
stream: premature close when using for await
add condition which allows code in callback to be reachable
docs: release documentation website
add decodeuricomponent to parse uri encoded special characters in host, username, password and datbase keys
correctly pass values when used with sql-template-strings library
sql-template-strings/tag compatibility
EventEmitter on method signatures to use spread syntax
add conn-level infileStreamFactory option
Update events that are propagated from pool cluster to include remove
improvements to allow to use Bun and tls
## 3.5.0 (2023-07-06) ### Features * improved inspection of columns
handle prepare response with actual number of parameter definition less than reported in the prepare header. Fixes #2052
add ProcedureCallPacket to execute overloads
remove acquireTimeout invalid option
changing type files to declaration type files
One column per quarter.