{"library":"mysql2","type":"library","category":null,"description":"mysql2 is a high-performance, native JavaScript MySQL client for Node.js, currently stable at version 3.22.1. It provides a robust and efficient way to interact with MySQL databases, emphasizing speed through a re-written protocol parser. The library maintains broad API compatibility with the popular 'Node MySQL' package while introducing advanced features such as comprehensive prepared statement support, binary log protocol, SSL/TLS encryption, and data compression. It also includes a first-class promise-based API wrapper for modern async/await patterns. mysql2 is under active development with a rapid release cadence, frequently pushing out bug fixes, performance improvements, and new features, including recent security enhancements like disabling the `mysql_clear_password` plugin by default and supporting `Symbol.dispose` for resource management.","language":"javascript","status":"active","version":"3.22.1","tags":["javascript","mysql","client","server","typescript"],"install":[{"cmd":"npm install mysql2","imports":["import { createConnection } from 'mysql2';","import { createPool } from 'mysql2';","import mysql from 'mysql2/promise';","import type { Connection } from 'mysql2';"]},{"cmd":"yarn add mysql2","imports":[]},{"cmd":"pnpm add mysql2","imports":[]}],"homepage":"https://sidorares.github.io/node-mysql2/","github":"https://github.com/sidorares/node-mysql2","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mysql2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mysql2/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}