mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-6066: Merge new defaults from 5.6 and 5.7 (defaults changed, QC can be stopped with no-zero size)
This commit is contained in:
committed by
Sergei Golubchik
parent
21daa7b929
commit
e3982cead2
@@ -1,5 +1,6 @@
|
||||
set @old_global_general_log=@@global.general_log;
|
||||
set global general_log=OFF;
|
||||
create user testuser@localhost;
|
||||
grant select on *.* to testuser@localhost;
|
||||
install plugin audit_null soname 'adt_null';
|
||||
select 1;
|
||||
|
@@ -5,6 +5,7 @@ auth_0x0100 1.0
|
||||
mysql_native_password 2.0
|
||||
mysql_old_password 2.0
|
||||
create user tt identified via auth_0x0100;
|
||||
create user zzzzzzzzzzzzzzzz;
|
||||
grant select on test.* to zzzzzzzzzzzzzzzz;
|
||||
connect(localhost,tt,,test,MASTER_MYPORT,MASTER_MYSOCK);
|
||||
ERROR 28000: Access denied for user 'tt'@'localhost' (using password: YES)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
set global query_cache_type=ON;
|
||||
set local query_cache_type=ON;
|
||||
set global query_cache_size=1355776;
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1),(2),(3);
|
||||
@@ -16,6 +18,7 @@ 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;
|
||||
set global query_cache_type=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;
|
||||
|
@@ -1,3 +1,5 @@
|
||||
set global query_cache_type=ON;
|
||||
set local query_cache_type=ON;
|
||||
set global query_cache_size=1355776;
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1),(2),(3);
|
||||
@@ -21,3 +23,4 @@ count(*)
|
||||
drop user mysqltest;
|
||||
drop table t1;
|
||||
set global query_cache_size= default;
|
||||
set global query_cache_type=default;
|
||||
|
@@ -8,6 +8,7 @@ if (!$ADT_NULL_SO) {
|
||||
set @old_global_general_log=@@global.general_log;
|
||||
set global general_log=OFF;
|
||||
|
||||
create user testuser@localhost;
|
||||
grant select on *.* to testuser@localhost;
|
||||
|
||||
--disable_ps_protocol
|
||||
|
@@ -9,6 +9,7 @@ install soname 'auth_0x0100';
|
||||
select plugin_name, plugin_type_version from information_schema.plugins where plugin_type='authentication' order by plugin_name;
|
||||
|
||||
create user tt identified via auth_0x0100;
|
||||
create user zzzzzzzzzzzzzzzz;
|
||||
grant select on test.* to zzzzzzzzzzzzzzzz;
|
||||
|
||||
--replace_result $MASTER_MYSOCK MASTER_MYSOCK $MASTER_MYPORT MASTER_MYPORT
|
||||
|
@@ -8,6 +8,7 @@ set global query_cache_size = 0;
|
||||
select * from information_schema.query_cache_info;
|
||||
|
||||
set global query_cache_size= default;
|
||||
set global query_cache_type=default;
|
||||
|
||||
--error ER_PARSE_ERROR
|
||||
show query_cache_info;
|
||||
|
@@ -3,6 +3,8 @@ if (`select count(*) = 0 from information_schema.plugins where plugin_name = 'qu
|
||||
--skip QUERY_CACHE_INFO plugin is not active
|
||||
}
|
||||
|
||||
set global query_cache_type=ON;
|
||||
set local query_cache_type=ON;
|
||||
set global query_cache_size=1355776;
|
||||
|
||||
create table t1 (a int not null);
|
||||
|
@@ -12,4 +12,4 @@ drop user mysqltest;
|
||||
drop table t1;
|
||||
|
||||
set global query_cache_size= default;
|
||||
|
||||
set global query_cache_type=default;
|
||||
|
Reference in New Issue
Block a user