forked from metin-server/m2dev-server
database script
Creates required Metin2 databases, defines the mt2 user, and grants minimal DML permissions for server operation.
This commit is contained in:
15
sql/database_create/database_create.sql
Normal file
15
sql/database_create/database_create.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE DATABASE IF NOT EXISTS account;
|
||||
CREATE DATABASE IF NOT EXISTS common;
|
||||
CREATE DATABASE IF NOT EXISTS log;
|
||||
CREATE DATABASE IF NOT EXISTS player;
|
||||
CREATE DATABASE IF NOT EXISTS hotbackup;
|
||||
|
||||
CREATE USER IF NOT EXISTS 'mt2'@'localhost' IDENTIFIED BY 'mt2@pw';
|
||||
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON `account`.* TO 'mt2'@'localhost';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON `common`.* TO 'mt2'@'localhost';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON `log`.* TO 'mt2'@'localhost';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON `player`.* TO 'mt2'@'localhost';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON `hotbackup`.* TO 'mt2'@'localhost';
|
||||
|
||||
FLUSH PRIVILEGES;
|
||||
Reference in New Issue
Block a user