Skip to content

Commit

Permalink
Add localhost user into the DB scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriyborisenko committed Dec 22, 2016
1 parent 8210a30 commit 1b57da0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions astergazer/util/astergazer_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ CREATE TABLE configuration (
PRIMARY KEY (name)
);

CREATE USER 'astergazer'@'%' IDENTIFIED BY 'Ga45Sfg36%9Bc';
GRANT ALL PRIVILEGES ON astergazer . * TO 'astergazer'@'%';
CREATE USER astergazer@'%' IDENTIFIED BY 'Ga45Sfg36%9Bc';
GRANT ALL PRIVILEGES ON astergazer . * TO astergazer@'%';
CREATE USER astergazer@localhost IDENTIFIED BY 'Ga45Sfg36%9Bc';
GRANT ALL PRIVILEGES ON astergazer . * TO astergazer@localhost;
FLUSH PRIVILEGES;
4 changes: 3 additions & 1 deletion astergazer/util/astergazer_mysql_drop.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
DROP DATABASE astergazer;
DROP USER astergazer@'%';
DROP USER astergazer@'%';
DROP USER astergazer@localhost;
FLUSH PRIVILEGES;

0 comments on commit 1b57da0

Please sign in to comment.