summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-26 00:23:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-26 00:23:42 +0300
commit38eee2a50319328ebeed45231da28bad4b9d551f (patch)
tree57764ca065faacfe44adad491af467c4dc1c7d86
parent1a373535934aa786d67dec6fbf42c53b659b540d (diff)
downloadevol-tools-38eee2a50319328ebeed45231da28bad4b9d551f.tar.gz
evol-tools-38eee2a50319328ebeed45231da28bad4b9d551f.tar.bz2
evol-tools-38eee2a50319328ebeed45231da28bad4b9d551f.tar.xz
evol-tools-38eee2a50319328ebeed45231da28bad4b9d551f.zip
hercules: add script for import converted sql files.
-rwxr-xr-xhercules/import_newdb.sh24
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..3625245
--- /dev/null
+++ b/hercules/import_newdb.sh
@@ -0,0 +1,24 @@
+#!/bin/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