on-internet
← Community

Grant all privileges on set of MySQL databases with same prefix

Stack Overflow ·

I have a set of databeses with names like abc_base_1, abc_base_2, abc_base_3, abc_base_n. I'd like to grant all privileges on all tables of all this databases to one non root user. Generally, it seems that abc_ is a common prefix of group. Questions: Is mysql has database groups? If yes - how to define them (something special or it just has to have same name prefix (like abc))? Is it possible to grant privileges on group of databases (or databases with names starts with abc prefix)? If yes - how to grant? Is this permissions distributes dynamically for all new databases, that has the same name

Comments

Sign in or sign up to comment and upvote.

No comments yet.