mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#57609 performance_schema does not work with lower_case_table_names
Before this fix, the performance schema tables were defined in UPPERCASE. This was incompatible with the lowercase_table_names option, and caused issues with the install / upgrade process, when changing the lower case table names setting *after* the install or upgrade. With this fix, all performance schema tables are exposed with lowercase names. As a result, the name of the performance schema table is always lowercase, no matter how / if / when the lowercase_table_names setting if changed.
This commit is contained in:
@ -1,23 +1,23 @@
|
||||
select * from performance_schema.FILE_INSTANCES limit 1;
|
||||
select * from performance_schema.file_instances limit 1;
|
||||
FILE_NAME EVENT_NAME OPEN_COUNT
|
||||
# # #
|
||||
select * from performance_schema.FILE_INSTANCES
|
||||
select * from performance_schema.file_instances
|
||||
where file_name='FOO';
|
||||
FILE_NAME EVENT_NAME OPEN_COUNT
|
||||
insert into performance_schema.FILE_INSTANCES
|
||||
insert into performance_schema.file_instances
|
||||
set file_name='FOO', event_name='BAR', open_count=12;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
update performance_schema.FILE_INSTANCES
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_instances'
|
||||
update performance_schema.file_instances
|
||||
set file_name='FOO';
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
delete from performance_schema.FILE_INSTANCES
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_instances'
|
||||
delete from performance_schema.file_instances
|
||||
where event_name like "wait/%";
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
delete from performance_schema.FILE_INSTANCES;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
LOCK TABLES performance_schema.FILE_INSTANCES READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_instances'
|
||||
delete from performance_schema.file_instances;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_instances'
|
||||
LOCK TABLES performance_schema.file_instances READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'file_instances'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.FILE_INSTANCES WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_INSTANCES'
|
||||
LOCK TABLES performance_schema.file_instances WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'file_instances'
|
||||
UNLOCK TABLES;
|
||||
|
Reference in New Issue
Block a user