44 lines
2.0 KiB
Plaintext
44 lines
2.0 KiB
Plaintext
SHOW GLOBAL VARIABLES LIKE 'query_cache_type';
|
|
Variable_name Value
|
|
query_cache_type OFF
|
|
SET GLOBAL query_cache_type=ON;
|
|
ERROR HY000: Query cache is disabled; restart the server with query_cache_type=1 to enable it
|
|
SET GLOBAL query_cache_type=DEMAND;
|
|
ERROR HY000: Query cache is disabled; restart the server with query_cache_type=1 to enable it
|
|
SET GLOBAL query_cache_type=OFF;
|
|
Warnings:
|
|
Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release.
|
|
SET GLOBAL query_cache_size=1024*1024;
|
|
Warnings:
|
|
Warning 1287 '@@query_cache_size' is deprecated and will be removed in a future release.
|
|
SHOW GLOBAL VARIABLES LIKE 'query_cache_size';
|
|
Variable_name Value
|
|
query_cache_size 1048576
|
|
SET GLOBAL query_cache_size=DEFAULT;
|
|
Warnings:
|
|
Warning 1287 '@@query_cache_size' is deprecated and will be removed in a future release.
|
|
#
|
|
# BUG#16906827 - CAN'T SET QUERY_CACHE_TYPE TO 0 WHEN IT IS ALREADY 0
|
|
#
|
|
SHOW GLOBAL VARIABLES LIKE 'query_cache_type';
|
|
Variable_name Value
|
|
query_cache_type OFF
|
|
# This statement will pass if run with the fix and fail with
|
|
# ER_QUERY_CACHE_DISABLED if run without the fix.
|
|
SET GLOBAL query_cache_type=OFF;
|
|
Warnings:
|
|
Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release.
|
|
SET GLOBAL query_cache_type=ON;
|
|
ERROR HY000: Query cache is disabled; restart the server with query_cache_type=1 to enable it
|
|
SET GLOBAL query_cache_type=DEMAND;
|
|
ERROR HY000: Query cache is disabled; restart the server with query_cache_type=1 to enable it
|
|
# This statement will pass if run with the fix and fail with
|
|
# ER_QUERY_CACHE_DISABLED if run without the fix.
|
|
SET SESSION query_cache_type=OFF;
|
|
Warnings:
|
|
Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release.
|
|
SET SESSION query_cache_type=ON;
|
|
ERROR HY000: Query cache is disabled; restart the server with query_cache_type=1 to enable it
|
|
SET SESSION query_cache_type=DEMAND;
|
|
ERROR HY000: Query cache is disabled; restart the server with query_cache_type=1 to enable it
|