使用GoLang版MySQLDiff对比表结构
概述
下载地址: https://github.com/camry/mysqldiff/
编译安装
git clone https://github.com/camry/mysqldiff.git
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOPRIVATE=*.corp.example.com
go build .\mysqldiff.go
执行对比
./mysqldiff --source root:rootpwd@10.3.1.1:3366 --target root2:rootpwd2@10.3.1.1:3366 --db sourcedb:targetdb
以上,Windows 11 上测试有效。