Skip to content

hctech/mysql-schema-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

同步 MySQL Schema 工具

使用说明

  1. git clone code

  2. 安装依赖

    pip install pymysql
    
  3. 运行同步脚本

    python sync_mysql_schema.py [options] <source> <target>
    
    # source: 源数据库连接 mysql://user:pass@host:port/database
    # target: 目标数据库连接 mysql://user:pass@host:port/database
    # options:
    #      -a: sync the AUTO_INCREMENT value for eache table.
    #      -c: sync the COMMENT field for all tables AND columns. 
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages