forked from mangosvb/DatabaseZero
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just so it barely functions better mostly with the files it already has, plus the quick script that I added. World FullDB had 2 errors, create scripts could probably be included in bat file allowing customizable schema names, even this entire project could be deduplicated with the main one, which could be done for all C++ cores as well, including the data if it is the same too. Quick script adapted from mangoszero/database#132.
- Loading branch information
Showing
6 changed files
with
145 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@echo off | ||
|
||
REM You can use this file to quickly configure and run all included scripts for the database schemas, or individual ones when provided with the desired script as the first parameter, such as dragging that script onto this one. | ||
REM Configuration involves uncommenting any of the following lines by removing the "REM " prefix text for any setting you need to provide for your database installation that does not match a default value, by also providing your custom after the "=". | ||
|
||
set quick=on | ||
set skipPause=on | ||
set skipDone=on | ||
|
||
REM set DEBUG=YES | ||
|
||
REM set mysqlDir=tools | ||
REM set mysqlExeName=mysql.exe | ||
REM set mysqlConnectionOtherOptions=-q -v | ||
REM set mysqlConnectionOptions=--login-path=root-local-My8 | ||
REM set svr=localhost | ||
REM set user=root | ||
REM set pass=rootpass | ||
REM set port=3306 | ||
REM set adb=realmd | ||
REM set cdb=character0 | ||
REM set wdb=mangos0 | ||
|
||
IF "%1" == "" ( | ||
echo Will execute all 3 scripts. | ||
) ELSE ( | ||
echo Will only execute this script: %~nx1 | ||
) | ||
echo. | ||
|
||
set /p ready="Ready? (Y/<*>): " | ||
IF NOT DEFINED ready set ready=N | ||
if %ready% == Y GOTO EXECUTE: | ||
if %ready% == y GOTO EXECUTE: | ||
|
||
GOTO :EOF | ||
|
||
:Execute | ||
cd %~dp0 | ||
%~d0 | ||
IF "%1" == "" ( | ||
CALL Install_Account.bat | ||
CALL Install_Characters.bat | ||
CALL Install_World.bat | ||
pause | ||
) ELSE ( | ||
CALL %~nx1 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CREATE DATABASE `character0` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
|
||
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, LOCK TABLES ON `character0`.* TO 'mangos'@'localhost'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE DATABASE IF NOT EXISTS `mangos0` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
|
||
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, LOCK TABLES, CREATE ROUTINE, ALTER ROUTINE ON `mangos0`.* TO 'mangos'@'localhost'; | ||
|
||
FLUSH PRIVILEGES; |