mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
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