mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Cleaned up namespaces (still have to do Map Project) and removed references to FFXIV Classic from the code. Removed the Launcher Editor project as it is no longer needed (host file editing is cleaner).
This commit is contained in:
25
data/sql/import.sh
Normal file
25
data/sql/import.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
IMPORT_PATH="path/to/ffxiv-classic-server/sql/"
|
||||
USER=root
|
||||
PASS=root
|
||||
DBNAME=ffxiv_server
|
||||
|
||||
echo Creating Database $DBNAME
|
||||
mysql -h localhost -u $USER -p$PASS DROP $DBNAME
|
||||
|
||||
echo Creating Database $DBNAME
|
||||
mysql -h localhost -u $USER -p$PASS CREATE $DBNAME IF NOT EXISTS $DBNAME
|
||||
|
||||
echo Loading $DBNAME tables into the database
|
||||
|
||||
for X in $IMPORT_PATH'*.sql';
|
||||
do
|
||||
for Y in $X
|
||||
do
|
||||
echo Importing $Y;
|
||||
mysql $DBNAME -h localhost -u $USER -p$PASS < $Y
|
||||
done
|
||||
done
|
||||
|
||||
echo Finished!
|
||||
|
||||
Reference in New Issue
Block a user