mysql-node-migrator

JSON →
library 1.3.0 ·javascript
verified Jun 5, 2026

mysql-node-migrator is a lightweight database migration tool for Node.js and MySQL, currently at version 1.3.0 (stable, low release cadence). It manages SQL change scripts in a folder, tracking executed migrations in a `migration_schema` table. Unlike more complex tools like Knex or Sequelize migrations, it focuses on simplicity: plain SQL files named with a version prefix (e.g., V1__init.sql), automatic execution order, and no rollback support. It wraps promise-mysql (which wraps mysqljs/mysql) and works only with `.createConnection()`, limiting advanced connection pooling. Best suited for small projects or teams wanting minimal migration overhead.