A CLI tool that compares MySQL schemas defined in .sql files (CREATE TABLE statements) against a live MySQL server database. It supports MySQL 5.x only and can compare tables (columns, data types, indexes, foreign keys), triggers, stored procedures, and views. Configuration can be done via CLI flags, environment variables, or .env file. Version 0.0.12 is the latest, but the project is a work in progress with limited documentation and no formal release cadence.
npm install mysql-schema-compareNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compares the schema defined in schema.sql against the live MySQL database 'mydb'.
Ensure all trigger and stored procedure definitions use $$ as the delimiter.
Import these objects to the database with the --comments flag, e.g., mysql --comments < file.sql
For MySQL 8.x, consider using a different tool.
Ensure all required parameters are provided via CLI, environment variables, or .env file.
Only use MySQL 5.x schemas without unsupported objects.
Review the differences reported by the tool and adjust either the definitions or the database accordingly.
No dependency data recorded yet.