mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	fixed linux build and import script
This commit is contained in:
		| @@ -1,25 +1,25 @@ | ||||
| #!/bin/bash | ||||
| IMPORT_PATH="C://coding//repositories//ffxiv related//ffxivclassic//ffxiv-classic-server//sql//" | ||||
| USER=root | ||||
| PASS=root | ||||
| DBNAME=ffxiv_server | ||||
|  | ||||
| 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 IF NOT EXISTS $DBNAME | ||||
|  | ||||
| ECHO Loading $DBNAME tables into the database | ||||
| 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! | ||||
| #!/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