~mser/vmangos-docker

bf6a0a94124a91b37028402f6513c04d153f5079 — Michael Serajnik 5 months ago 4eeebf6
Unify SQL formatting
2 files changed, 10 insertions(+), 10 deletions(-)

M docker/database/generate-db-1.sql
M docker/database/regenerate-world-db.sql
M docker/database/generate-db-1.sql => docker/database/generate-db-1.sql +7 -7
@@ 2,12 2,12 @@ CREATE DATABASE IF NOT EXISTS realmd DEFAULT CHARSET utf8 COLLATE utf8_general_c
CREATE DATABASE IF NOT EXISTS characters DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
CREATE DATABASE IF NOT EXISTS mangos DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
CREATE DATABASE IF NOT EXISTS logs DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
create user 'mangos'@'localhost' identified by 'mangos';
CREATE USER 'mangos'@'localhost' IDENTIFIED BY 'mangos';
SET PASSWORD FOR 'mangos'@'localhost' = PASSWORD('mangos');
GRANT ALL PRIVILEGES ON *.* TO 'mangos'@'%' IDENTIFIED BY 'mangos';
flush privileges;
grant all on realmd.* to mangos@'localhost' with grant option;
grant all on characters.* to mangos@'localhost' with grant option;
grant all on mangos.* to mangos@'localhost' with grant option;
grant all on logs.* to mangos@'localhost' with grant option;
flush privileges;
FLUSH PRIVILEGES;
GRANT ALL ON realmd.* TO mangos@'localhost' WITH GRANT OPTION;
GRANT ALL ON characters.* TO mangos@'localhost' WITH GRANT OPTION;
GRANT ALL ON mangos.* TO mangos@'localhost' WITH GRANT OPTION;
GRANT ALL ON logs.* TO mangos@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

M docker/database/regenerate-world-db.sql => docker/database/regenerate-world-db.sql +3 -3
@@ 1,6 1,6 @@
DROP DATABASE mangos;
CREATE DATABASE mangos DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON *.* TO 'mangos'@'%' IDENTIFIED BY 'mangos';
flush privileges;
grant all on mangos.* to mangos@'localhost' with grant option;
flush privileges;
FLUSH PRIVILEGES;
GRANT ALL ON mangos.* TO mangos@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;