Created
September 1, 2017 13:47
-
-
Save Inkimar/0669b6618b5f207c3a8ad9f394dce9d7 to your computer and use it in GitHub Desktop.
db privs
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
https://github.com/mskyttner/specify-docker/blob/master/s6init.sql | |
example with multipled privileges: | |
create user if not exists 'xx'@'%' identified by 'xx'; | |
create user if not exists 'yy'@'%' identified by 'yy'; | |
grant select, insert, update, delete, lock tables, | |
alter, create, drop, | |
index, grant option on specify6.* | |
to 'yy'@'%'; | |
grant reload on *.* to 'yy'@'%'; | |
grant select, insert, update, delete, lock tables | |
on specify6.* to 'xx'@'%'; | |
flush privileges; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment