Bug #44213 | PerformanceSchema: can drop a table but not recreate it; cannot alter it. | ||
---|---|---|---|
Submitted: | 11 Apr 2009 10:02 | Modified: | 14 Jan 2010 18:03 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Performance Schema | Severity: | S3 (Non-critical) |
Version: | 6.0-perf | OS: | Linux |
Assigned to: | Marc ALFF | CPU Architecture: | Any |
[11 Apr 2009 10:02]
Guilhem Bichot
[16 Apr 2009 9:29]
Sergei Golubchik
this should be solved the same way as it's done for I_S tables - for I_S tables privileges are defined so that everyone can SELECT from them (grant select on I_S.* to public) and no one can do anything else.
[26 May 2009 7:32]
Jørgen Austvik
I can confirm that this happens to all tables in PERFORMANCE_SCHEMA. I am expecting ER_DBACCESS_DENIED_ERROR.
[3 Jun 2009 18:18]
Marc ALFF
Fixed with: bzr commit into mysql-6.0-perfschema branch (marc.alff:3158)
[26 Jun 2009 9:12]
Guilhem Bichot
runtime team will be better-suited for reviewing this.
[20 Nov 2009 18:55]
Marc ALFF
Clarifications: As long as the server architecture is to rely on *.frm tables in storage engines, the *.frm tables will need to be created explicitly. Tables *.frm are created by mysql_upgrade, during the server upgrade process. For mysql_upgrade to work properly, the CREATE and DROP privileges need to be granted, and the CREATE TABLE / DROP TABLE operations need to be supported by the storage engine (the performance schema). If the current user is granted the CREATE and DROP privileges, the fact that this user can actually DROP and CREATE a performance schema table is the expected result. For ALTER TABLE, this operation is not supported by the performance schema, and this operation is not needed by the upgrade process (DROP+CREATE is used instead, as there is no persistent data) The fact that any user can not ALTER a performance schema table is the expected result. A fix for this bug has been implemented, to allow the CREATE to pass, which is under review, and the code behaves as expected in mysql-trunk-perfschema. Note that: DROP + CREATE might be forbidden in later releases if *.frm files are replaced with another mechanism, but for now, "DROP + CREATE" are allowed, and the current server behavior is as expected.
[1 Dec 2009 21:41]
Marc ALFF
Reviewed by Dmitry with the SQL_ACL changes
[1 Dec 2009 21:43]
Marc ALFF
Queued in mysql-trunk-perfschema
[14 Jan 2010 10:01]
Marc ALFF
Merged in: - mysql-next-mr (Celosia / 5.5.99-m3) - mysql-6.0-codebase (6.0.14)
[14 Jan 2010 18:03]
Paul DuBois
Not in any released version. No changelog entry needed.