node package manager

mysql2

fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS

Node MySQL 2

MySql client for node.js. Written in native JavaScript and aims to be mostly api compatible with node-mysql

  • Fast
  • Prepared Statements
  • Promise Wrapper
  • Authentication Switch
  • MySQL Server (API and Mocks)
  • Pooling
  • SSL
  • MySQL Compression
  • Binary Log Protocol Client

Please check documentation to get started.

  • Internal protocol is written by @sidorares MySQL-Native
  • Constants, SQL parameters interpolation, Pooling, ConnectionConfig class taken from node-mysql
  • SSL upgrade code based on @TooTallNate code
  • Secure connection / compressed connection api flags compatible to MariaSQL client.
  • Contributors

Want to improve something in node-mysql2. Please check Contributing.md for detailed instruction on how to get started.