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
Last release 5 days ago
29 Sep 2026
Ships fairly regularly
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
13 years old
327 releases · first in 2013
Nothing published for this version
pass columnType to readDateTimeString
One column per quarter.
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
create promise-based PoolCluster typings
createPool uri overload (98623dd)PoolCluster typings (3902ca6)PoolCluster typings (7f38496)parserCache in promise.js (7f35cf5)promise.js (4ce2c70)Types constant (86655ec)Charsets constants (01f77a0)CharsetToEncoding constants (609229a)parserCache (891a523)Types constant (04601dd)Charsets constants (51c4196)support STATE_GTIDS session track information
Your coding agent can read these notes before it upgrades. Set up the MCP server →