Skip to content

Instantly share code, notes, and snippets.

@Inkimar
Created September 1, 2017 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Inkimar/0669b6618b5f207c3a8ad9f394dce9d7 to your computer and use it in GitHub Desktop.
Save Inkimar/0669b6618b5f207c3a8ad9f394dce9d7 to your computer and use it in GitHub Desktop.
db privs
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