Last active
August 29, 2015 14:00
-
-
Save skyriser/60b338757ab7591616ce to your computer and use it in GitHub Desktop.
MySQL R/RW User Template
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
GRANT SELECT, CREATE TEMPORARY TABLES ON DATABASE_NAME.* TO `DATABASE_NAME_r`@"192.168.%" IDENTIFIED BY ''; | |
GRANT PROCESS ,SHOW DATABASES ON *.* TO `DATABASE_NAME_r`@"192.168.%" IDENTIFIED BY ''; | |
GRANT ALTER, DELETE, INDEX, INSERT, SELECT ,UPDATE ,CREATE, DROP, CREATE TEMPORARY TABLES, LOCK TABLES, CREATE VIEW, SHOW VIEW ON `DATABASE_NAME`.* TO `DATABASE_NAME_rw`@"192.168.%" IDENTIFIED BY 'XXXXXXXXX'; | |
GRANT PROCESS ,SHOW DATABASES ON *.* TO `DATABASE_NAME_rw`@"192.168.%" IDENTIFIED BY 'XXXXXXXXXX'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
192.168.% とかなってるのは適宜変更する。
あと、パスワード無しがアレだったら適宜アレする。