Database creation and db schema install

This commit is contained in:
2025-02-26 21:06:33 +01:00
parent f465c9072c
commit 22c7a98cc9
2 changed files with 16 additions and 1 deletions

15
app/DATABASE_CREATION.sql Normal file
View File

@@ -0,0 +1,15 @@
-- Create a database for ForgottenServer
CREATE DATABASE IF NOT EXISTS forgottenserver CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
-- Create a user for specific for the database
CREATE USER IF NOT EXISTS forgottenserver@localhost IDENTIFIED BY 'forgotten';
-- Set privileges to the new user
GRANT ALL PRIVILEGES ON forgottenserver.* TO 'forgottenserver'@'localhost';
FLUSH PRIVILEGES;
-- forgottenserver database schema installation
SOURCE '/home/tibia/SabrehavenServer/sabrehaven.sql';
-- ZnoteAAC database schema installation
SOURCE '/var/www/ZnoteAAC/engine/database/znote_schema.sql';