diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-10-23 23:45:19 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-10-23 23:45:19 -0300 |
commit | c2ccb14ffff0e45398365e19dfd2874307ddb943 (patch) | |
tree | 976eaea586fb8f1ee0ab8cae67c69071aed8b952 /hercules/import_newdb.sh | |
download | tools-c2ccb14ffff0e45398365e19dfd2874307ddb943.tar.gz tools-c2ccb14ffff0e45398365e19dfd2874307ddb943.tar.bz2 tools-c2ccb14ffff0e45398365e19dfd2874307ddb943.tar.xz tools-c2ccb14ffff0e45398365e19dfd2874307ddb943.zip |
Initial commit
Diffstat (limited to 'hercules/import_newdb.sh')
-rwxr-xr-x | hercules/import_newdb.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/hercules/import_newdb.sh b/hercules/import_newdb.sh new file mode 100755 index 0000000..ba81d4f --- /dev/null +++ b/hercules/import_newdb.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +export CMD="$*" + +if [[ -z "${CMD}" ]]; then + echo "Usage example: ./import_newsb.sh -u evol -pevol evol" + exit +fi + +cd newdb + +function import { +echo Importing $1 +mysql $CMD <$1 +} + +import acc_reg_num_db.sql +import char.sql +import char_reg_num_db.sql +import inventory.sql +import login.sql +import party.sql +import skill.sql +import storage.sql |