Bug #78713 Allow wildcards in table names of GRANT statement
| Submitted: | 6 Oct 2015 8:04 | Modified: | 29 Nov 2017 10:52 |
|---|---|---|---|
| Reporter: | Daniël van Eeden | Email Updates: | |
| Status: | Open | Impact on me: | |
| Category: | MySQL Server: Security: Privileges | Severity: | S4 (Feature request) |
| Version: | 5.6.26 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | acl, grant, table, wildcard | ||
[15 Oct 2015 15:30]
Pavel Katiushyn
+1 to this feature. It is also interesting, if there are plans to implement roles?
[29 Nov 2017 10:52]
Daniël van Eeden
@Pavel: That's in 8.0: https://dev.mysql.com/worklog/task/?id=988
[21 Aug 10:59]
IGG t
Tried this in 8.4.11. Still doesn't work. grant select on mydb.archive* to 'archive_user'@'localhost'; grant select on mydb.archive% to 'archive_user'@'localhost'; The only options are a) grant them select access to the whole database b) manually update their grants at the start of the month when we add/remove archive tables neither of which is ideal.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: I would like to be able to run something like this: GRANT SELECT ON 'mydb'.'history_%' TO 'archive_user'@'host.example.com'; This applies to some archive and sharding setups. For both it is common to grant on a per database level, but sometimes that's not enough How to repeat: See description