From c97247a990501b0df7ce31cb6372332b1d6f3af0 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 9 Jun 2010 00:54:15 -0600 Subject: * 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 --- sql/create/drop_mysql.sql | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sql/create/drop_mysql.sql (limited to 'sql/create/drop_mysql.sql') diff --git a/sql/create/drop_mysql.sql b/sql/create/drop_mysql.sql new file mode 100644 index 00000000000..c0ec81e378f --- /dev/null +++ b/sql/create/drop_mysql.sql @@ -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`; -- cgit v1.2.3 From 948e86ef174e83ded5055f0212a5d4bcd1f6f595 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 9 Jul 2010 02:47:16 -0600 Subject: * Update drop file as well --HG-- branch : trunk --- sql/create/drop_mysql.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/create/drop_mysql.sql') diff --git a/sql/create/drop_mysql.sql b/sql/create/drop_mysql.sql index c0ec81e378f..ee05439df99 100644 --- a/sql/create/drop_mysql.sql +++ b/sql/create/drop_mysql.sql @@ -8,9 +8,9 @@ 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 ALL PRIVILEGES ON `auth` . * FROM 'trinity'@'localhost'; -REVOKE GRANT OPTION ON `realmd` . * FROM 'trinity'@'localhost'; +REVOKE GRANT OPTION ON `auth` . * FROM 'trinity'@'localhost'; DROP USER 'trinity'@'localhost'; @@ -18,4 +18,4 @@ DROP DATABASE IF EXISTS `world`; DROP DATABASE IF EXISTS `characters`; -DROP DATABASE IF EXISTS `realmd`; +DROP DATABASE IF EXISTS `auth`; -- cgit v1.2.3