vitess-gh/support/mysqldump
jawabuu e844b25847 Fix typo
Signed-off-by: jawabuu <49921621+jawabuu@users.noreply.github.com>
2020-11-12 08:00:49 +03:00
..
.gitignore Add mysqldump section 2020-04-09 03:04:20 +03:00
README.md Formatting updtaes 2020-04-09 03:39:37 +03:00
mysqldump.sh Fix typo 2020-11-12 08:00:49 +03:00

README.md

Support for Mysqldump

In order to export and import mysqldump through vtgate, unsupported queries and statements need to be stripped from the dump.
A 2-step process is advised.

  1. Dump the schema only and import.
  2. Dump the data and import.

Export and Import mysqldump into Vitess

Define the variables then run the script

vitess/support/mysqldump$ ./mysqldump.sh

The script will output 2 files to enable debugging;
schema.sql
data.sql
The script will also attempt to import the schema and data into Vitess via vtgate.

Notes

  1. This has been tested for small databases.
  2. The script can be modified to include other unsupported statements that may be present.
  3. The script has been tested with GNU sed, BSD sed users e.g. MacOS will need to update the script.