mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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,28 +1,28 @@
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
select * from performance_schema.file_summary_by_instance
|
||||
where event_name like 'Wait/io/%' limit 1;
|
||||
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
|
||||
# # # # # #
|
||||
select * from performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
select * from performance_schema.file_summary_by_instance
|
||||
where event_name='FOO';
|
||||
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
|
||||
insert into performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
insert into performance_schema.file_summary_by_instance
|
||||
set event_name='FOO', count_read=1, count_write=2,
|
||||
sum_number_of_bytes_read=4, sum_number_of_bytes_write=5;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
update performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_summary_by_instance'
|
||||
update performance_schema.file_summary_by_instance
|
||||
set count_read=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
update performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_instance'
|
||||
update performance_schema.file_summary_by_instance
|
||||
set count_write=12 where event_name like "FOO";
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
delete from performance_schema.FILE_SUMMARY_BY_INSTANCE
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_instance'
|
||||
delete from performance_schema.file_summary_by_instance
|
||||
where count_read=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
delete from performance_schema.FILE_SUMMARY_BY_INSTANCE;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
LOCK TABLES performance_schema.FILE_SUMMARY_BY_INSTANCE READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_instance'
|
||||
delete from performance_schema.file_summary_by_instance;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_instance'
|
||||
LOCK TABLES performance_schema.file_summary_by_instance READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'file_summary_by_instance'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.FILE_SUMMARY_BY_INSTANCE WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'FILE_SUMMARY_BY_INSTANCE'
|
||||
LOCK TABLES performance_schema.file_summary_by_instance WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'file_summary_by_instance'
|
||||
UNLOCK TABLES;
|
||||
|
Reference in New Issue
Block a user