summaryrefslogtreecommitdiff
path: root/hercules/import_newdb.sh
blob: 362524558329812c952d926f1702ce5e5e4896b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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