A MySQL driver for the marv database migration library (v5.0.0). This package provides a MySQL connection driver for executing SQL migrations managed by marv. It supports both mysql and mysql2 npm packages as peer dependencies, automatically detecting which is installed. Released under the MIT license, it follows a regular release cadence with contributions from the community. Key differentiators include support for both Promise and callback APIs, automatic driver detection, and built-in troubleshooting for MySQL 8 authentication issues.
npm install marv-mysql-driverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to run SQL migrations using marv with the mysql driver, using async/await and environment variables for connection config.
Install mysql2: npm install mysql2, or change MySQL authentication plugin to mysql_native_password
Set multipleStatements: true in the connection object
Upgrade Node.js to >=14.0.0
Use mysql2 instead of mysql, or set default_authentication_plugin=mysql_native_password in MySQL config
npm install mysql or npm install mysql2