mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Updated mtr files to support different compiled in options
This allows one to run the test suite even if any of the following options are changed: - character-set-server - collation-server - join-cache-level - log-basename - max-allowed-packet - optimizer-switch - query-cache-size and query-cache-type - skip-name-resolve - table-definition-cache - table-open-cache - Some innodb options etc Changes: - Don't print out the value of system variables as one can't depend on them to being constants. - Don't set global variables to 'default' as the default may not be the same as the test was started with if there was an additional option file. Instead save original value and reset it at end of test. - Test that depends on the latin1 character set should include default_charset.inc or set the character set to latin1 - Test that depends on the original optimizer switch, should include default_optimizer_switch.inc - Test that depends on the value of a specific system variable should set it in the test (like optimizer_use_condition_selectivity) - Split subselect3.test into subselect3.test and subselect3.inc to make it easier to set and reset system variables. - Added .opt files for test that required specfic options that could be changed by external configuration files. - Fixed result files in rockdsb & tokudb that had not been updated for a while.
This commit is contained in:
@ -9,10 +9,10 @@ flush privileges;
|
||||
|
||||
# Print critical setup
|
||||
|
||||
select @@global.debug;
|
||||
select @@global.max_connect_errors;
|
||||
select @@global.max_user_connections;
|
||||
select @@global.max_connections;
|
||||
#select @@global.debug;
|
||||
#select @@global.max_connect_errors;
|
||||
#select @@global.max_user_connections;
|
||||
#select @@global.max_connections;
|
||||
|
||||
# Make sure there are no remaining records that can change the test outcome
|
||||
|
||||
@ -20,4 +20,3 @@ select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
select `User`, `Host` from mysql.`user` where `user` like '2001:%';
|
||||
select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%';
|
||||
|
||||
|
@ -121,10 +121,12 @@ begin
|
||||
where thread_id = my_thread_id
|
||||
and nesting_event_id = my_statement_id
|
||||
order by event_id asc;
|
||||
# Ignore query cache as it may not be enabled
|
||||
select username, event_name, nesting_event_type
|
||||
from performance_schema.events_stages_history
|
||||
where thread_id = my_thread_id
|
||||
and nesting_event_id = my_statement_id
|
||||
and nesting_event_id = my_statement_id and
|
||||
event_name not like "%query cache%"
|
||||
order by event_id asc;
|
||||
end;
|
||||
else
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
1024
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
1024
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
@ -22,8 +10,8 @@ select `User`, `Host` from mysql.`user` where `user` like '2001:%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%';
|
||||
User Host
|
||||
select @@global.max_connections into @saved_max_connections;
|
||||
select @@global.max_user_connections into @saved_max_user_connections;
|
||||
SET @saved_max_connections=@@global.max_connections;
|
||||
SET @saved_max_user_connections=@@global.max_user_connections;
|
||||
create user 'quota'@'santa.claus.ipv6.example.com';
|
||||
grant select on test.* to 'quota'@'santa.claus.ipv6.example.com';
|
||||
grant usage on *.* to 'quota'@'santa.claus.ipv6.example.com'
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -3,18 +3,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -2,18 +2,6 @@ flush status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
select @@global.debug;
|
||||
@@global.debug
|
||||
|
||||
select @@global.max_connect_errors;
|
||||
@@global.max_connect_errors
|
||||
100
|
||||
select @@global.max_user_connections;
|
||||
@@global.max_user_connections
|
||||
0
|
||||
select @@global.max_connections;
|
||||
@@global.max_connections
|
||||
151
|
||||
select `User`, `Host` from mysql.`user` where `host` like '%\\%%';
|
||||
User Host
|
||||
select `User`, `Host` from mysql.`user` where `user` like '192.%';
|
||||
|
@ -1,3 +1,4 @@
|
||||
set @save_query_cache_size=@@query_cache_size;
|
||||
drop table if exists t1;
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1), (2), (3);
|
||||
@ -63,6 +64,6 @@ Qcache_inserts 1
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 1
|
||||
SET GLOBAL query_cache_size= default;
|
||||
SET GLOBAL query_cache_size=@save_query_cache_size;
|
||||
drop table t1;
|
||||
flush status;
|
||||
|
@ -10,7 +10,6 @@ username event_name nesting_event_type
|
||||
username event_name nesting_event_type
|
||||
user1 stage/sql/init STATEMENT
|
||||
user1 stage/sql/init STATEMENT
|
||||
user1 stage/sql/Waiting for query cache lock STATEMENT
|
||||
user1 stage/sql/init STATEMENT
|
||||
user1 stage/sql/query end STATEMENT
|
||||
user1 stage/sql/closing tables STATEMENT
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
#
|
||||
# Tests for the performance_schema host_cache.
|
||||
#
|
||||
@ -9,6 +8,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Host name 'santa.claus.ipv4.example.com' could not be resolved:
|
||||
# Temporary failure in name resolution
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Host name 'santa.claus.ipv4.example.com' could not be resolved:
|
||||
# Temporary failure in name resolution
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Hostname 'santa.claus.ipv4.example.com' does not resolve to '192.0.2.4'.
|
||||
# [Note] Hostname 'santa.claus.ipv4.example.com' has the following IP addresses:
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Hostname 'santa.claus.ipv4.example.com' does not resolve to '192.0.2.4'.
|
||||
# [Note] Hostname 'santa.claus.ipv4.example.com' has the following IP addresses:
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '192.0.2.4' could not be resolved:
|
||||
# no reverse address mapping.
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '192.0.2.4' could not be resolved:
|
||||
# no reverse address mapping.
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Host name 'santa.claus.ipv4.example.com' could not be resolved:
|
||||
# Name or service not known
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Host name 'santa.claus.ipv4.example.com' could not be resolved:
|
||||
# Name or service not known
|
||||
|
@ -12,6 +12,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_plugin_auth.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -11,6 +11,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -8,6 +8,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '192.0.2.4' could not be resolved:
|
||||
# Name or service not known
|
||||
|
@ -11,6 +11,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '192.0.2.4' could not be resolved:
|
||||
# Temporary failure in name resolution
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '192.0.2.4' could not be resolved:
|
||||
# Temporary failure in name resolution
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '192.0.2.4' could not be resolved:
|
||||
# no reverse address mapping.
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '192.0.2.4' could not be resolved:
|
||||
# no reverse address mapping.
|
||||
|
@ -8,6 +8,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -8,6 +8,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Host name 'santa.claus.ipv6.example.com' could not be resolved:
|
||||
# Temporary failure in name resolution
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Host name 'santa.claus.ipv6.example.com' could not be resolved:
|
||||
# Temporary failure in name resolution
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Hostname 'santa.claus.ipv6.example.com' does not resolve to '2001:db8::6:6'.
|
||||
# [Note] Hostname 'santa.claus.ipv6.example.com' has the following IP addresses:
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Hostname 'santa.claus.ipv6.example.com' does not resolve to '2001:db8::6:6'.
|
||||
# [Note] Hostname 'santa.claus.ipv6.example.com' has the following IP addresses:
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '192.0.2.4' could not be resolved:
|
||||
# no reverse address mapping.
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Host name 'santa.claus.ipv6.example.com' could not be resolved:
|
||||
# Name or service not known
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] Host name 'santa.claus.ipv6.example.com' could not be resolved:
|
||||
# Name or service not known
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -12,6 +12,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
--source include/have_plugin_auth.inc
|
||||
|
||||
# Enforce a clean state
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -1,2 +1,3 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
--max-user-connections=1024
|
||||
|
@ -12,13 +12,14 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
--source ../include/hostcache_set_state.inc
|
||||
|
||||
select @@global.max_connections into @saved_max_connections;
|
||||
select @@global.max_user_connections into @saved_max_user_connections;
|
||||
SET @saved_max_connections=@@global.max_connections;
|
||||
SET @saved_max_user_connections=@@global.max_user_connections;
|
||||
|
||||
create user 'quota'@'santa.claus.ipv6.example.com';
|
||||
grant select on test.* to 'quota'@'santa.claus.ipv6.example.com';
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '2001:db8::6:6' could not be resolved:
|
||||
# Temporary failure in name resolution
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '2001:db8::6:6' could not be resolved:
|
||||
# Temporary failure in name resolution
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '2001:db8::6:6' could not be resolved:
|
||||
# Name or service not known
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -10,6 +10,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# [Warning] IP address '2001:db8::6:6' could not be resolved:
|
||||
# Name or service not known
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -1 +1,2 @@
|
||||
--disable-skip-name-resolve
|
||||
--bind-address=::
|
||||
|
@ -9,6 +9,7 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/check_ipv6.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -8,6 +8,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source include/have_hostname_cache.inc
|
||||
|
||||
# Enforce a clean state
|
||||
--source ../include/wait_for_pfs_thread_count.inc
|
||||
|
@ -7,6 +7,8 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_perfschema.inc
|
||||
|
||||
set @save_query_cache_size=@@query_cache_size;
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
@ -50,7 +52,7 @@ show status like "Qcache_queries_in_cache";
|
||||
show status like "Qcache_inserts";
|
||||
show status like "Qcache_hits";
|
||||
|
||||
SET GLOBAL query_cache_size= default;
|
||||
SET GLOBAL query_cache_size=@save_query_cache_size;
|
||||
|
||||
drop table t1;
|
||||
flush status;
|
||||
|
2
mysql-test/suite/perfschema/t/stage_mdl_global.opt
Normal file
2
mysql-test/suite/perfschema/t/stage_mdl_global.opt
Normal file
@ -0,0 +1,2 @@
|
||||
--query-cache-size=1048576
|
||||
--query-cache-type=OFF
|
Reference in New Issue
Block a user