| 1 |
select * from performance_schema.user_variables_by_thread |
| 2 |
where variable_name like 'foo%' limit 1; |
| 3 |
select * from performance_schema.user_variables_by_thread |
| 4 |
where variable_name='FOO'; |
| 5 |
insert into performance_schema.user_variables_by_thread |
| 6 |
set thread_id=12, variable_name='foo', variable_value='bar'; |
| 7 |
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'user_variables_by_thread' |
| 8 |
update performance_schema.user_variables_by_thread |
| 9 |
set thread_id=12; |
| 10 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'user_variables_by_thread' |
| 11 |
update performance_schema.user_variables_by_thread |
| 12 |
set thread_id=12 where variable_name like "FOO"; |
| 13 |
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'user_variables_by_thread' |
| 14 |
delete from performance_schema.user_variables_by_thread |
| 15 |
where thread_id=1; |
| 16 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'user_variables_by_thread' |
| 17 |
delete from performance_schema.user_variables_by_thread; |
| 18 |
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'user_variables_by_thread' |
| 19 |
LOCK TABLES performance_schema.user_variables_by_thread READ; |
| 20 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'user_variables_by_thread' |
| 21 |
UNLOCK TABLES; |
| 22 |
LOCK TABLES performance_schema.user_variables_by_thread WRITE; |
| 23 |
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'user_variables_by_thread' |
| 24 |
UNLOCK TABLES; |
| 25 |
CREATE TRIGGER test_uvar_trigger |
| 26 |
AFTER INSERT ON performance_schema.user_variables_by_thread |
| 27 |
FOR EACH ROW BEGIN |
| 28 |
set @a='OK'; |
| 29 |
END| |
| 30 |
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' |