You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.7 KiB
Batchfile
31 lines
1.7 KiB
Batchfile
@echo off
|
|
|
|
rem MySQL database setup
|
|
|
|
rem Use the `MYSQL_PWD` environment variable to avoid insecure warning.
|
|
set MYSQL_PWD=%DB_ROOTPW%
|
|
|
|
%MYSQL% -u %DB_ROOT% -e "CREATE DATABASE %DB_NAME%;"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\main.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\logs.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db_usable.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db_equip.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db_etc.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db2.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db_re.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db_re_usable.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db_re_equip.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db_re_etc.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\item_db2_re.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\mob_db.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\mob_db2.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\mob_db_re.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\mob_db2_re.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\mob_skill_db.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\mob_skill_db2.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\mob_skill_db_re.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\mob_skill_db2_re.sql"
|
|
%MYSQL% -u %DB_ROOT% %DB_NAME% -e "source sql-files\roulette_default_data.sql"
|
|
%MYSQL% -u %DB_ROOT% -e "GRANT SELECT,INSERT,UPDATE,DELETE ON %DB_NAME%.* TO '%DB_USER%'@'%DB_HOST%' IDENTIFIED BY '%DB_USERPW%';"
|