mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 22:14:39 +02: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:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
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!
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue