Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dveeden/mysqldump_converter
mysqldump_converter
https://github.com/dveeden/mysqldump_converter
Last synced: about 1 month ago
JSON representation
mysqldump_converter
- Host: GitHub
- URL: https://github.com/dveeden/mysqldump_converter
- Owner: dveeden
- Created: 2022-11-15T08:26:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-16T08:30:14.000Z (about 2 years ago)
- Last Synced: 2024-06-21T06:27:46.123Z (5 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a tool to convert a dump created with `mysqldump` to the format that TiDB Dumpling and MyDumper are using.
This needs a lot more testing before it is ready for production usage.
Example run:
```
$ ./mysqldump_converter test1.sql
2022/11/15 09:24:05 Writing output to /tmp/mysqldump_converter
2022/11/15 09:24:05 Processing schema: test
2022/11/15 09:24:05 Processing table schema for test.t1
2022/11/15 09:24:05 Processing table data for test.t1
2022/11/15 09:24:05 Processing table schema for test.t2
2022/11/15 09:24:05 Processing table data for test.t2
$ ls -1 /tmp/mysqldump_converter
test.t1-schema.sql
test.t1.sql
test.t2-schema.sql
test.t2.sql
```