概述
下载地址: https://github.com/camry/mysqldiff/
编译安装
shell
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
执行对比
shell
./mysqldiff --source root:[email protected]:3366 --target root2:[email protected]:3366 --db sourcedb:targetdb
以上,Windows 11 上测试有效。