Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated: db_drop_mysql.sql #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 6 additions & 20 deletions sql/create/db_drop_mysql.sql
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
REVOKE ALL PRIVILEGES ON * . * FROM 'mangos'@'localhost';
/* Delete default user and its privileges (require MYSQL 5.7, MARIADB 10.1.3) */
DROP USER IF EXISTS `mangos`@`localhost`;

REVOKE ALL PRIVILEGES ON `mangos` . * FROM 'mangos'@'localhost';

REVOKE GRANT OPTION ON `mangos` . * FROM 'mangos'@'localhost';

REVOKE ALL PRIVILEGES ON `characters` . * FROM 'mangos'@'localhost';

REVOKE GRANT OPTION ON `characters` . * FROM 'mangos'@'localhost';

REVOKE ALL PRIVILEGES ON `realmd` . * FROM 'mangos'@'localhost';

REVOKE GRANT OPTION ON `realmd` . * FROM 'mangos'@'localhost';

DELETE FROM `user` WHERE CONVERT( User USING utf8 ) = CONVERT( 'mangos' USING utf8 ) AND CONVERT( Host USING utf8 ) = CONVERT( 'localhost' USING utf8 ) ;

DROP DATABASE IF EXISTS `mangos` ;

DROP DATABASE IF EXISTS `characters` ;

DROP DATABASE IF EXISTS `realmd` ;
/* Delete default tables */
DROP DATABASE IF EXISTS `catamangos`;
DROP DATABASE IF EXISTS `catacharacters`;
DROP DATABASE IF EXISTS `catarealmd`;