Run only Step 0 from mariadb
shell
source init-voyager-mariadb/chinook.sql
Run Step 1 to Step 7 from yb-voyager
shell
yb-voyager export schema --export-dir ${GITPOD_REPO_ROOT}/${DATA_PATH} \
--source-db-type ${SRC_DB_TYPE} \
--source-db-host ${HOST} \
--source-db-user ${SRC_USER} \
--source-db-password ${SRC_SECRET} \
--source-db-name ${SRC_DB_ID}
yb-voyager analyze-schema --export-dir ${GITPOD_REPO_ROOT}/${DATA_PATH} --output-format html
yb-voyager export data --export-dir ${GITPOD_REPO_ROOT}/${DATA_PATH} \
--source-db-type ${SRC_DB_TYPE} \
--source-db-host ${HOST} \
--source-db-user ${SRC_USER} \
--source-db-password ${SRC_SECRET} \
--source-db-name ${SRC_DB_ID}
yb-voyager import schema --export-dir ${GITPOD_REPO_ROOT}/${DATA_PATH} \
--target-db-host ${HOST} \
--target-db-user ${TARGET_USER} \
--target-db-password ${TARGET_SECRET} \
--target-db-name ${TARGET_DB_ID} \
--target-db-schema ${SCHEMA}
yb-voyager import data --export-dir ${GITPOD_REPO_ROOT}/${DATA_PATH} \
--target-db-host ${HOST} \
--target-db-user ${TARGET_USER} \
--target-db-password ${TARGET_SECRET} \
--target-db-name ${TARGET_DB_ID} \
--target-db-schema ${SCHEMA}
yb-voyager import schema --export-dir ${GITPOD_REPO_ROOT}/${DATA_PATH} \
--target-db-host ${HOST} \
--target-db-user ${TARGET_USER} \
--target-db-password ${TARGET_SECRET} \
--target-db-name ${TARGET_DB_ID} \
--target-db-schema ${SCHEMA} --post-snapshot-import true
yb-voyager import data status --export-dir ${GITPOD_REPO_ROOT}/${DATA_PATH}