使用GoLang版MySQLDiff对比表结构

概述

下载地址: 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:rootpwd@10.3.1.1:3366 --target root2:rootpwd2@10.3.1.1:3366 --db sourcedb:targetdb

以上,Windows 11 上测试有效。

相关推荐
五岁小孩4 小时前
Go 原理之 GMP 并发调度模型
golang·gmp·并发调度模型
betazhou4 小时前
MySQL ROUTER安装部署
android·数据库·mysql·adb·mgr·mysql router
埃泽漫笔4 小时前
MySQL - 索引(B+树)
mysql·b+树
一枚小小程序员哈5 小时前
springboot基于Java与MySQL库的健身俱乐部管理系统设计与实现
数据库·spring boot·mysql·spring·java-ee·intellij-idea
iVictor6 小时前
分享一个 MySQL binlog 分析小工具
mysql
Yu_Lijing6 小时前
MySQL进阶学习与初阶复习第四天
数据库·学习·mysql
大熊程序猿7 小时前
net8.0一键创建支持(Orm-Sqlite-MySql-SqlServer)
数据库·mysql·sqlite
-SGlow-15 小时前
MySQL相关概念和易错知识点(2)(表结构的操作、数据类型、约束)
linux·运维·服务器·数据库·mysql
Hello.Reader16 小时前
Go-Elasticsearch v9 安装与版本兼容性
elasticsearch·golang·jenkins
五岁小孩16 小时前
实操使用 go pprof 对生产环境进行性能分析(问题定位及代码优化)
性能优化·golang·pprof