mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
* Renamed some directories in sql/ to more accurately reflect their purpose
--HG-- branch : trunk rename : sql/auth_database.sql => sql/base/auth_database.sql rename : sql/character_database.sql => sql/base/character_database.sql rename : sql/world_database.sql => sql/base/world_database.sql rename : sql/tools/CMakeLists.txt => sql/create/CMakeLists.txt rename : sql/tools/create_mysql.sql => sql/create/create_mysql.sql rename : sql/tools/drop_mysql.sql => sql/create/drop_mysql.sql rename : sql/full/CMakeLists.txt => sql/scripts/CMakeLists.txt rename : sql/full/world_script_texts.sql => sql/scripts/world_script_texts.sql rename : sql/full/world_script_waypoints.sql => sql/scripts/world_script_waypoints.sql rename : sql/full/world_scripts_full.sql => sql/scripts/world_scripts_full.sql
This commit is contained in:
5
sql/create/CMakeLists.txt
Normal file
5
sql/create/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
########### install files ###############
|
||||
|
||||
FILE(GLOB _SQL *.sql)
|
||||
|
||||
install(FILES ${_SQL} DESTINATION share/trinity/sql/tools)
|
||||
13
sql/create/create_mysql.sql
Normal file
13
sql/create/create_mysql.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
GRANT USAGE ON * . * TO 'trinity'@'localhost' IDENTIFIED BY 'trinity' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 ;
|
||||
|
||||
CREATE DATABASE `world` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
|
||||
CREATE DATABASE `characters` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
|
||||
CREATE DATABASE `realmd` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
|
||||
GRANT ALL PRIVILEGES ON `world` . * TO 'trinity'@'localhost' WITH GRANT OPTION;
|
||||
|
||||
GRANT ALL PRIVILEGES ON `characters` . * TO 'trinity'@'localhost' WITH GRANT OPTION;
|
||||
|
||||
GRANT ALL PRIVILEGES ON `realmd` . * TO 'trinity'@'localhost' WITH GRANT OPTION;
|
||||
21
sql/create/drop_mysql.sql
Normal file
21
sql/create/drop_mysql.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
REVOKE ALL PRIVILEGES ON * . * FROM 'trinity'@'localhost';
|
||||
|
||||
REVOKE ALL PRIVILEGES ON `world` . * FROM 'trinity'@'localhost';
|
||||
|
||||
REVOKE GRANT OPTION ON `world` . * FROM 'trinity'@'localhost';
|
||||
|
||||
REVOKE ALL PRIVILEGES ON `characters` . * FROM 'trinity'@'localhost';
|
||||
|
||||
REVOKE GRANT OPTION ON `characters` . * FROM 'trinity'@'localhost';
|
||||
|
||||
REVOKE ALL PRIVILEGES ON `realmd` . * FROM 'trinity'@'localhost';
|
||||
|
||||
REVOKE GRANT OPTION ON `realmd` . * FROM 'trinity'@'localhost';
|
||||
|
||||
DROP USER 'trinity'@'localhost';
|
||||
|
||||
DROP DATABASE IF EXISTS `world`;
|
||||
|
||||
DROP DATABASE IF EXISTS `characters`;
|
||||
|
||||
DROP DATABASE IF EXISTS `realmd`;
|
||||
Reference in New Issue
Block a user