mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +02:00
fixed import script, improved db import times, fixed logging and warp command (should be 5000% legit now)
- improved import times for gamedata tables (there's prolly other innodb tables too, i didnt check though) - fixed issue where player wouldnt be readded to zone on warping if destination wasnt valid - corrected typo in warp command lua description - added logger for lua cause i forgot to last time
This commit is contained in:
parent
7f65cfcbbf
commit
065fe05795
14 changed files with 60 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
IMPORT_PATH=C:/repositories/ffxiv-classic-server/sql/
|
||||
IMPORT_PATH="C://coding//repositories//ffxiv related//ffxivclassic//ffxiv-classic-server//sql//"
|
||||
USER=root
|
||||
PASS=root
|
||||
DBNAME=ffxiv_server
|
||||
|
@ -8,14 +8,18 @@ ECHO Creating Database $DBNAME
|
|||
mysqladmin -h localhost -u $USER -p$PASS DROP $DBNAME
|
||||
|
||||
ECHO Creating Database $DBNAME
|
||||
mysqladmin -h localhost -u $USER -p$PASS CREATE $DBNAME
|
||||
mysqladmin -h localhost -u $USER -p$PASS CREATE $DBNAME IF NOT EXISTS $DBNAME
|
||||
|
||||
ECHO Loading $DBNAME tables into the database
|
||||
cd $IMPORT_PATH
|
||||
for X in *.sql;
|
||||
do
|
||||
echo Importing $X;
|
||||
"C:\program files\mysql\mysql server 5.7\bin\mysql" $DBNAME -h localhost -u $USER -p$PASS < $X
|
||||
sh cd $IMPORT_PATH
|
||||
|
||||
for X in '*.sql';
|
||||
do
|
||||
for Y in $X
|
||||
do
|
||||
echo Importing $Y;
|
||||
"C:\program files\mysql\mysql server 5.7\bin\mysql" $DBNAME -h localhost -u $USER -p$PASS < $Y
|
||||
done
|
||||
done
|
||||
|
||||
ECHO Finished!
|
Loading…
Add table
Add a link
Reference in a new issue