mirror of
https://github.com/MariaDB/server.git
synced 2025-08-23 03:54:27 +03:00
Extend existing plugins to support * SHOW QUERY_RESPONSE_TIME * FLUSH QUERY_RESPONSE_TIME * SHOW LOCALE move userstat tables to use the new API instead of hand-coded syntax
23 lines
1.2 KiB
Plaintext
23 lines
1.2 KiB
Plaintext
set global query_cache_size=1355776;
|
|
create table t1 (a int not null);
|
|
insert into t1 values (1),(2),(3);
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
|
|
statement_schema statement_text result_blocks_count result_blocks_size
|
|
test select * from t1 1 512
|
|
drop table t1;
|
|
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
|
|
statement_schema statement_text result_blocks_count result_blocks_size
|
|
set global query_cache_size = 0;
|
|
select * from information_schema.query_cache_info;
|
|
STATEMENT_SCHEMA STATEMENT_TEXT RESULT_BLOCKS_COUNT RESULT_BLOCKS_SIZE RESULT_BLOCKS_SIZE_USED
|
|
set global query_cache_size= default;
|
|
show query_cache_info;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'query_cache_info' at line 1
|
|
flush query_cache_info;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'query_cache_info' at line 1
|