PHPackages                             hailong/mysql\_sync - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. hailong/mysql\_sync

ActiveProject[Database &amp; ORM](/categories/database)

hailong/mysql\_sync
===================

A very lightweight but handy MySql database diff and sync tool.

v1.1.4(7y ago)1201MITPHP

Since Apr 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Hailong/mysql_sync)[ Packagist](https://packagist.org/packages/hailong/mysql_sync)[ Docs](https://github.com/Hailong/mysql_sync)[ RSS](/packages/hailong-mysql-sync/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)DependenciesVersions (8)Used By (0)

mysql\_sync
===========

[](#mysql_sync)

A very lightweight but handy tool, which can diff the data between two databases, and sync the difference from "left" to "right".

Configuration
-------------

[](#configuration)

Just provide the informaton of your "left" database, "right" database, and a list of tables you want to diff and sync. There is also a "dry run" flag to print out all the querie strings on screen, instead of carry out the real DB commands.

All configuration goes into `mysql_sync/Config/Config.php` file, as the example below:

```
