-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf($MySQL): simplify MySQL configuration for docker-compose
Init user in the MySQL script
- Loading branch information
1 parent
305e12b
commit 7f4a017
Showing
4 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE USER 'replication_user'@'%' IDENTIFIED BY 'replication_password'; | ||
GRANT REPLICATION SLAVE ON *.* TO 'replication_user'@'%'; | ||
|
||
CREATE USER 'maf_mysql_rw'@'%' IDENTIFIED BY 'maf@mysql'; | ||
GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO 'maf_mysql_rw'@'%'; | ||
|
||
CREATE USER 'maf_mysql_r'@'%' IDENTIFIED BY 'maf@mysql'; | ||
GRANT SELECT ON *.* TO 'maf_mysql_r'@'%'; |