File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ DB_HOST='127.0.0.1'
9
9
DB_USER=' root'
10
10
DB_PASS=' root'
11
11
DB_EXPORT_FLAGS=' --routines --quick --hex-blob --single-transaction'
12
+ DB_IMPORT_FLAGS=' --protocol=socket'
12
13
13
14
# Determine DB
14
15
echo " Welcome to the SDIT DB Migrator (mysql/postgres) $NEWLINE "
@@ -41,7 +42,7 @@ case $DB_MODE in
41
42
42
43
echo -n " Copying...! $NEWLINE "
43
44
# shellcheck disable=SC2086
44
- docker exec -i " $CONTAINER_NAME_FROM " mysqldump $DB_EXPORT_FLAGS --user=" ${DB_USER} " --password=" ${DB_PASS} " --port=" ${DB_PORT} " --databases " ${DB_NAME} " | docker exec -i " $CONTAINER_NAME_TO " mysql --user=" ${DB_USER} " --password=" ${DB_PASS} " --port=" ${DB_TO_PORT} " " ${DB_TO_NAME} "
45
+ docker exec -i " $CONTAINER_NAME_FROM " mysqldump $DB_EXPORT_FLAGS --user=" ${DB_USER} " --password=" ${DB_PASS} " --port=" ${DB_PORT} " --databases " ${DB_NAME} " | docker exec -i " $CONTAINER_NAME_TO " mysql $DB_IMPORT_FLAGS --user=" ${DB_USER} " --password=" ${DB_PASS} " --port=" ${DB_TO_PORT} " " ${DB_TO_NAME} "
45
46
echo -n " Copied...! $NEWLINE "
46
47
;;
47
48
You can’t perform that action at this time.
0 commit comments