Skip to content

Quick script to compare two mysql databases. It quickly check if there are missing tables in one of the tables and missing fields. Useful when developing and checking if production and development databases are up-to-sync.

License

Notifications You must be signed in to change notification settings

jdmendez/compare_mysql_db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

compare_mysql_db

Quick script to compare two mysql databases. It quickly check if there are missing tables in one of the tables and missing fields. Useful when developing and checking if production and development databases are up-to-sync. Quick setup

  1. Modify the script with any text editor, adding the user and password that has access to both databases.
  2. Run as follows php -f compare_mysql_db.php <database_name1> <database_name2>

if need more detail, modify the variable to be true: $verbose = true;

About

Quick script to compare two mysql databases. It quickly check if there are missing tables in one of the tables and missing fields. Useful when developing and checking if production and development databases are up-to-sync.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages