https://github.com/ryan1068/migrate
Go 迁移Mysql数据到分库分表
https://github.com/ryan1068/migrate
go migrate mysql
Last synced: about 1 year ago
JSON representation
Go 迁移Mysql数据到分库分表
- Host: GitHub
- URL: https://github.com/ryan1068/migrate
- Owner: ryan1068
- Created: 2020-03-18T11:11:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T05:38:47.000Z (almost 6 years ago)
- Last Synced: 2025-03-24T09:46:54.439Z (about 1 year ago)
- Topics: go, migrate, mysql
- Language: Go
- Homepage:
- Size: 538 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
本项目是用go语言写的把mysql数据迁移到分库分表。
## 特点
1. 使用go协程、连接池特性
1. 协程执行错误时记录日志
1. 程序执行时进度显示
1. 不同机器可以通过配置分批查询参数和批量插入参数达到最佳性能
## 使用方式:
```go
//创建数据表
go run main.go -mode=tables -ac=create
//删除数据表
go run main.go -mode=tables -ac=drop
//迁移数据
go run main.go -mode=migrate
```