Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
25 lines (17 loc) · 580 Bytes

File metadata and controls

25 lines (17 loc) · 580 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

MySQL Schema Diff

Normalize and compare two MySQL CREATE TABLE dumps from the command line.

Requirements

  • Bash
  • diff (or optionally icdiff / Meld for the corresponding output modes)

Usage

git clone https://github.com/alsd4git/mysql-schema-diff.git
cd mysql-schema-diff
chmod +x SqlCompare.sh
./SqlCompare.sh old_db.sql new_db.sql 1

Run ./SqlCompare.sh -h for the supported comparison modes. The script was originally written with Git Bash on Windows and should also work with a regular Bash environment.

License

MIT. See LICENSE.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.