Database creation and db schema install
This commit is contained in:
15
app/DATABASE_CREATION.sql
Normal file
15
app/DATABASE_CREATION.sql
Normal 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';
|
Reference in New Issue
Block a user