File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 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'
99DB_USER=' root'
1010DB_PASS=' root'
1111DB_EXPORT_FLAGS=' --routines --quick --hex-blob --single-transaction'
12+ DB_IMPORT_FLAGS=' --protocol=socket'
1213
1314# Determine DB
1415echo " Welcome to the SDIT DB Migrator (mysql/postgres) $NEWLINE "
@@ -41,7 +42,7 @@ case $DB_MODE in
4142
4243 echo -n " Copying...! $NEWLINE "
4344 # 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} "
4546 echo -n " Copied...! $NEWLINE "
4647 ;;
4748
You can’t perform that action at this time.
0 commit comments