Commit b7fb30e9 authored by Alice Sherepa's avatar Alice Sherepa

MDEV-21360 global debug_dbug pre-test value restoration issues

parent 451573fa
...@@ -15,7 +15,7 @@ RESET MASTER; ...@@ -15,7 +15,7 @@ RESET MASTER;
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=innodb; CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=innodb;
INSERT INTO t1 VALUES(0); INSERT INTO t1 VALUES(0);
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET SESSION debug_dbug='+d,fail_binlog_write_1'; SET SESSION debug_dbug='+d,fail_binlog_write_1';
--error ER_ERROR_ON_WRITE --error ER_ERROR_ON_WRITE
INSERT INTO t1 VALUES(1); INSERT INTO t1 VALUES(1);
......
...@@ -133,7 +133,7 @@ set @save_dbug = @@session.debug_dbug; ...@@ -133,7 +133,7 @@ set @save_dbug = @@session.debug_dbug;
set @@session.debug_dbug='d,simulate_checksum_test_failure'; set @@session.debug_dbug='d,simulate_checksum_test_failure';
--error ER_ERROR_WHEN_EXECUTING_COMMAND --error ER_ERROR_WHEN_EXECUTING_COMMAND
show binlog events; show binlog events;
set debug_dbug= @save_dbug; SET debug_dbug= @save_dbug;
set @@global.master_verify_checksum = default; set @@global.master_verify_checksum = default;
#connection master; #connection master;
......
...@@ -4,9 +4,9 @@ drop table if exists t1; ...@@ -4,9 +4,9 @@ drop table if exists t1;
SET @old_debug= @@session.debug; SET @old_debug= @@session.debug;
CREATE TABLE t1 (i INT, KEY(i)) ENGINE=InnoDB; CREATE TABLE t1 (i INT, KEY(i)) ENGINE=InnoDB;
CREATE OR REPLACE TEMPORARY TABLE tmp (a int, b int, key(a)) engine=myisam; CREATE OR REPLACE TEMPORARY TABLE tmp (a int, b int, key(a)) engine=myisam;
set debug_dbug='+d,send_kill_after_delete'; SET debug_dbug='+d,send_kill_after_delete';
CREATE OR REPLACE TABLE t1 LIKE tmp; CREATE OR REPLACE TABLE t1 LIKE tmp;
set debug_dbug=@old_debug; SET debug_dbug=@old_debug;
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
t1 t1
......
SET @saved_dbug = @@debug_dbug; SET @saved_dbug = @@debug_dbug;
set debug_dbug='+d,unstable_db_type'; SET debug_dbug='+d,unstable_db_type';
install soname 'ha_archive'; install soname 'ha_archive';
create table t1 (a int) engine=archive; create table t1 (a int) engine=archive;
insert t1 values (1),(2),(3); insert t1 values (1),(2),(3);
...@@ -33,4 +33,4 @@ t1.frm ...@@ -33,4 +33,4 @@ t1.frm
drop table t1; drop table t1;
db.opt db.opt
uninstall soname 'ha_archive'; uninstall soname 'ha_archive';
set debug_dbug=@saved_dbug; SET debug_dbug=@saved_dbug;
create table t1 (a int, b int); create table t1 (a int, b int);
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set debug_dbug='+d,external_lock_failure'; SET debug_dbug='+d,external_lock_failure';
alter table t1 add column c int; alter table t1 add column c int;
ERROR HY000: Got error 168 'KABOOM!' from MyISAM ERROR HY000: Got error 168 'KABOOM!' from MyISAM
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
drop table t1; drop table t1;
...@@ -10,7 +10,7 @@ INSERT INTO t1 VALUES ...@@ -10,7 +10,7 @@ INSERT INTO t1 VALUES
('AAAAAAAAAH','AAAAAAAAAH'), ('AAAAAAAAAI','AAAAAAAAAI'), ('AAAAAAAAAH','AAAAAAAAAH'), ('AAAAAAAAAI','AAAAAAAAAI'),
('AAAAAAAAAJ','AAAAAAAAAJ'), ('AAAAAAAAAK','AAAAAAAAAK'); ('AAAAAAAAAJ','AAAAAAAAAJ'), ('AAAAAAAAAK','AAAAAAAAAK');
set tmp_table_size=1024; set tmp_table_size=1024;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,raise_error"; set session debug_dbug="+d,raise_error";
SELECT MAX(a) FROM t1 GROUP BY a,b; SELECT MAX(a) FROM t1 GROUP BY a,b;
ERROR 23000: Can't write; duplicate key in table '(temporary)' ERROR 23000: Can't write; duplicate key in table '(temporary)'
...@@ -23,7 +23,7 @@ CREATE TABLE t1 (a INT(100) NOT NULL); ...@@ -23,7 +23,7 @@ CREATE TABLE t1 (a INT(100) NOT NULL);
INSERT INTO t1 VALUES (1), (0), (2); INSERT INTO t1 VALUES (1), (0), (2);
SET SESSION debug_dbug='+d,alter_table_only_index_change'; SET SESSION debug_dbug='+d,alter_table_only_index_change';
ALTER TABLE t1 ADD INDEX a(a); ALTER TABLE t1 ADD INDEX a(a);
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
Table Create Table Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
...@@ -43,7 +43,7 @@ CREATE TABLE t1(a BLOB); ...@@ -43,7 +43,7 @@ CREATE TABLE t1(a BLOB);
SET SESSION debug_dbug="+d,bug42064_simulate_oom"; SET SESSION debug_dbug="+d,bug42064_simulate_oom";
INSERT INTO t1 VALUES(""); INSERT INTO t1 VALUES("");
Got one of the listed errors Got one of the listed errors
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
DROP TABLE t1; DROP TABLE t1;
# #
# Bug#41660: Sort-index_merge for non-first join table may require # Bug#41660: Sort-index_merge for non-first join table may require
...@@ -80,7 +80,7 @@ a a b filler ...@@ -80,7 +80,7 @@ a a b filler
7 1 1 data 7 1 1 data
8 1 1 data 8 1 1 data
9 1 1 data 9 1 1 data
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
SET optimizer_switch=@save_optimizer_switch; SET optimizer_switch=@save_optimizer_switch;
DROP TABLE t1, t2; DROP TABLE t1, t2;
# #
...@@ -93,7 +93,7 @@ INSERT INTO t2 VALUES (1),(2); ...@@ -93,7 +93,7 @@ INSERT INTO t2 VALUES (1),(2);
SET SESSION debug_dbug="+d,bug11747970_raise_error"; SET SESSION debug_dbug="+d,bug11747970_raise_error";
INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1); INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1);
ERROR 70100: Query execution was interrupted ERROR 70100: Query execution was interrupted
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
DROP TABLE t1,t2; DROP TABLE t1,t2;
# #
# End of 5.1 tests # End of 5.1 tests
...@@ -127,4 +127,4 @@ SET SESSION debug_dbug="+d,simulate_create_virtual_tmp_table_out_of_memory"; ...@@ -127,4 +127,4 @@ SET SESSION debug_dbug="+d,simulate_create_virtual_tmp_table_out_of_memory";
SELECT f1(1); SELECT f1(1);
Got one of the listed errors Got one of the listed errors
DROP FUNCTION f1; DROP FUNCTION f1;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set @@debug_dbug= 'd,opt'; set @@debug_dbug= 'd,opt';
CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=MyISAM; CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=MyISAM;
CREATE TABLE t2 ( CREATE TABLE t2 (
...@@ -47,4 +47,4 @@ SELECT * FROM t1, v3, t4 WHERE v3.f1 = t4.f1 AND t4.f2 = 6 AND t1.pk = v3.f5; ...@@ -47,4 +47,4 @@ SELECT * FROM t1, v3, t4 WHERE v3.f1 = t4.f1 AND t4.f2 = 6 AND t1.pk = v3.f5;
pk f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f1 f2 pk f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f1 f2
drop table t1,t2,t3,t4; drop table t1,t2,t3,t4;
drop view v2,v3; drop view v2,v3;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -34,10 +34,10 @@ create table t1 (a int, index(a)); ...@@ -34,10 +34,10 @@ create table t1 (a int, index(a));
lock tables t1 write; lock tables t1 write;
insert t1 values (1),(2),(1); insert t1 values (1),(2),(1);
set @old_dbug=@@debug_dbug; set @old_dbug=@@debug_dbug;
set debug_dbug='+d,mi_lock_database_failure'; SET debug_dbug='+d,mi_lock_database_failure';
unlock tables; unlock tables;
Warnings: Warnings:
Error 126 Index for table './test/t1.MYI' is corrupt; try to repair it Error 126 Index for table './test/t1.MYI' is corrupt; try to repair it
Error 1030 Got error 22 "Invalid argument" from storage engine MyISAM Error 1030 Got error 22 "Invalid argument" from storage engine MyISAM
set debug_dbug=@old_dbug; SET debug_dbug=@old_dbug;
drop table t1; drop table t1;
...@@ -70,7 +70,7 @@ key(a),key(b),key(c) ...@@ -70,7 +70,7 @@ key(a),key(b),key(c)
insert into t1 insert into t1
select A.a+10*B.a, A.a+10*B.a, A.a+10*B.a+100*C.a select A.a+10*B.a, A.a+10*B.a, A.a+10*B.a+100*C.a
from t0 A, t0 B, t0 C, t0 D where D.a<5; from t0 A, t0 B, t0 C, t0 D where D.a<5;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set @@global.debug_dbug="+d,ha_index_init_fail"; set @@global.debug_dbug="+d,ha_index_init_fail";
explain select * from t1 where a=10 and b=10; explain select * from t1 where a=10 and b=10;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
...@@ -78,5 +78,5 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -78,5 +78,5 @@ id select_type table type possible_keys key key_len ref rows Extra
select * from t1 where a=10 and b=10; select * from t1 where a=10 and b=10;
ERROR HY000: Table definition has changed, please retry transaction ERROR HY000: Table definition has changed, please retry transaction
DROP TABLE t0,t1; DROP TABLE t0,t1;
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
set @@optimizer_switch= @optimizer_switch_save; set @@optimizer_switch= @optimizer_switch_save;
...@@ -7,10 +7,10 @@ INSERT INTO t1 (c) SELECT c FROM t1; ...@@ -7,10 +7,10 @@ INSERT INTO t1 (c) SELECT c FROM t1;
INSERT INTO t1 (c) SELECT c FROM t1; INSERT INTO t1 (c) SELECT c FROM t1;
INSERT INTO t1 (c) SELECT c FROM t1; INSERT INTO t1 (c) SELECT c FROM t1;
set @old_dbug=@@session.debug_dbug; set @old_dbug=@@session.debug_dbug;
set debug_dbug="+d,kill_join_init_read_record"; SET debug_dbug="+d,kill_join_init_read_record";
SELECT 1 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3 SELECT 1 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
WHERE alias1.c = alias2.c OR alias1.i <= 1 WHERE alias1.c = alias2.c OR alias1.i <= 1
; ;
ERROR 70100: Query execution was interrupted ERROR 70100: Query execution was interrupted
set debug_dbug=@old_dbug; SET debug_dbug=@old_dbug;
DROP TABLE t1; DROP TABLE t1;
...@@ -6,7 +6,7 @@ insert into t1 values (2,2), (1,1); ...@@ -6,7 +6,7 @@ insert into t1 values (2,2), (1,1);
create table t2 (a int); create table t2 (a int);
insert into t2 values (2), (3); insert into t2 values (2), (3);
set session join_cache_level=3; set session join_cache_level=3;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set @@debug_dbug= 'd,opt'; set @@debug_dbug= 'd,opt';
explain select t1.b from t1,t2 where t1.b=t2.a; explain select t1.b from t1,t2 where t1.b=t2.a;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
...@@ -17,4 +17,4 @@ b ...@@ -17,4 +17,4 @@ b
2 2
set session join_cache_level=default; set session join_cache_level=default;
drop table t1,t2; drop table t1,t2;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
This diff is collapsed.
...@@ -14,7 +14,7 @@ from t0 A, t0 B, t0 C; ...@@ -14,7 +14,7 @@ from t0 A, t0 B, t0 C;
# Test SHOW EXPLAIN for single-table DELETE # Test SHOW EXPLAIN for single-table DELETE
# #
connection con2; connection con2;
set debug_dbug='+d,show_explain_probe_delete_exec_start'; SET debug_dbug='+d,show_explain_probe_delete_exec_start';
delete from t1 where a<10 and b+1>1000; delete from t1 where a<10 and b+1>1000;
connection default; connection default;
show explain for $thr2; show explain for $thr2;
...@@ -27,7 +27,7 @@ connection con2; ...@@ -27,7 +27,7 @@ connection con2;
# Test SHOW EXPLAIN for multi-table DELETE # Test SHOW EXPLAIN for multi-table DELETE
# #
set @show_explain_probe_select_id=1; set @show_explain_probe_select_id=1;
set debug_dbug='+d,show_explain_probe_do_select'; SET debug_dbug='+d,show_explain_probe_do_select';
delete t1 from t1, t0 where t0.a=t1.a and t1.b +1 > 1000; delete t1 from t1, t0 where t0.a=t1.a and t1.b +1 > 1000;
connection default; connection default;
show explain for $thr2; show explain for $thr2;
...@@ -41,7 +41,7 @@ connection con2; ...@@ -41,7 +41,7 @@ connection con2;
# Test SHOW EXPLAIN for single-table UPDATE # Test SHOW EXPLAIN for single-table UPDATE
# #
connection con2; connection con2;
set debug_dbug='+d,show_explain_probe_update_exec_start'; SET debug_dbug='+d,show_explain_probe_update_exec_start';
update t1 set filler='filler-data-2' where a<10 and b+1>1000; update t1 set filler='filler-data-2' where a<10 and b+1>1000;
connection default; connection default;
show explain for $thr2; show explain for $thr2;
...@@ -51,5 +51,5 @@ Warnings: ...@@ -51,5 +51,5 @@ Warnings:
Note 1003 update t1 set filler='filler-data-2' where a<10 and b+1>1000 Note 1003 update t1 set filler='filler-data-2' where a<10 and b+1>1000
connection con2; connection con2;
drop table t0,t1; drop table t0,t1;
set debug_dbug=@old_debug; SET debug_dbug=@old_debug;
set debug_sync='RESET'; set debug_sync='RESET';
...@@ -17,8 +17,8 @@ connection con1; ...@@ -17,8 +17,8 @@ connection con1;
connection default; connection default;
connection con1; connection con1;
set @show_explain_probe_select_id=1; set @show_explain_probe_select_id=1;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set debug_dbug='d,show_explain_probe_join_exec_start'; SET debug_dbug='d,show_explain_probe_join_exec_start';
select count(*) from t0 where a < 100000; select count(*) from t0 where a < 100000;
connection default; connection default;
show explain for $thr2; show explain for $thr2;
...@@ -29,7 +29,7 @@ Note 1003 select count(*) from t0 where a < 100000 ...@@ -29,7 +29,7 @@ Note 1003 select count(*) from t0 where a < 100000
connection con1; connection con1;
count(*) count(*)
10 10
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
select event_name select event_name
from from
performance_schema.events_stages_history_long join performance_schema.events_stages_history_long join
......
...@@ -3,8 +3,8 @@ create table t1 (a int, b int) engine=memory; ...@@ -3,8 +3,8 @@ create table t1 (a int, b int) engine=memory;
insert t1 select seq, seq+1 from seq_1_to_1000; insert t1 select seq, seq+1 from seq_1_to_1000;
set global general_log=0; set global general_log=0;
set global log_queries_not_using_indexes=1; set global log_queries_not_using_indexes=1;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set debug_dbug='+d,simulate_file_write_error'; SET debug_dbug='+d,simulate_file_write_error';
select * from t1 where a>10; select * from t1 where a>10;
select * from t1 where a>10; select * from t1 where a>10;
select * from t1 where a>10; select * from t1 where a>10;
...@@ -55,7 +55,7 @@ select * from t1 where a>10; ...@@ -55,7 +55,7 @@ select * from t1 where a>10;
select * from t1 where a>10; select * from t1 where a>10;
select * from t1 where a>10; select * from t1 where a>10;
select * from t1 where a>10; select * from t1 where a>10;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
set global general_log=1; set global general_log=1;
set global log_queries_not_using_indexes=default; set global log_queries_not_using_indexes=default;
drop table t1; drop table t1;
call mtr.add_suppression("No space left on device"); call mtr.add_suppression("No space left on device");
create table t1 (a varchar(255), b varchar(255), c varchar(255)); create table t1 (a varchar(255), b varchar(255), c varchar(255));
set use_stat_tables=PREFERABLY, optimizer_use_condition_selectivity=3; set use_stat_tables=PREFERABLY, optimizer_use_condition_selectivity=3;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set debug_dbug='+d,simulate_file_write_error'; SET debug_dbug='+d,simulate_file_write_error';
set @@max_heap_table_size=128*1024; set @@max_heap_table_size=128*1024;
analyze table t1; analyze table t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 analyze Error Error writing file 'tmp-file' (Errcode: 28 "No space left on device") test.t1 analyze Error Error writing file 'tmp-file' (Errcode: 28 "No space left on device")
test.t1 analyze status Operation failed test.t1 analyze status Operation failed
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
drop table t1; drop table t1;
create table t1 (i tinyint); create table t1 (i tinyint);
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set debug_dbug='+d,bug11747970_raise_error'; SET debug_dbug='+d,bug11747970_raise_error';
insert into t1 (i) select i from t1 union select i from t1; insert into t1 (i) select i from t1 union select i from t1;
ERROR 70100: Query execution was interrupted ERROR 70100: Query execution was interrupted
drop table t1; drop table t1;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
drop table if exists t1; drop table if exists t1;
create table t1 (a int primary key) engine=innodb; create table t1 (a int primary key) engine=innodb;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET SESSION debug_dbug="+d,warn_during_ha_commit_trans"; SET SESSION debug_dbug="+d,warn_during_ha_commit_trans";
INSERT INTO t1 VALUES (1); INSERT INTO t1 VALUES (1);
Warnings: Warnings:
...@@ -9,4 +9,4 @@ SHOW WARNINGS; ...@@ -9,4 +9,4 @@ SHOW WARNINGS;
Level Code Message Level Code Message
Warning 1196 Some non-transactional changed tables couldn't be rolled back Warning 1196 Some non-transactional changed tables couldn't be rolled back
drop table t1; drop table t1;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -2,7 +2,7 @@ CALL mtr.add_suppression("Error writing file 'master-bin'"); ...@@ -2,7 +2,7 @@ CALL mtr.add_suppression("Error writing file 'master-bin'");
RESET MASTER; RESET MASTER;
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=innodb; CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=innodb;
INSERT INTO t1 VALUES(0); INSERT INTO t1 VALUES(0);
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET SESSION debug_dbug='+d,fail_binlog_write_1'; SET SESSION debug_dbug='+d,fail_binlog_write_1';
INSERT INTO t1 VALUES(1); INSERT INTO t1 VALUES(1);
ERROR HY000: Error writing file 'master-bin' (errno: 28 "No space left on device") ERROR HY000: Error writing file 'master-bin' (errno: 28 "No space left on device")
......
...@@ -2,7 +2,7 @@ CALL mtr.add_suppression("Error writing file 'master-bin'"); ...@@ -2,7 +2,7 @@ CALL mtr.add_suppression("Error writing file 'master-bin'");
RESET MASTER; RESET MASTER;
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=innodb; CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=innodb;
INSERT INTO t1 VALUES(0); INSERT INTO t1 VALUES(0);
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET SESSION debug_dbug='+d,fail_binlog_write_1'; SET SESSION debug_dbug='+d,fail_binlog_write_1';
INSERT INTO t1 VALUES(1); INSERT INTO t1 VALUES(1);
ERROR HY000: Error writing file 'master-bin' (errno: 28 "No space left on device") ERROR HY000: Error writing file 'master-bin' (errno: 28 "No space left on device")
......
...@@ -93,7 +93,7 @@ set @save_dbug = @@session.debug_dbug; ...@@ -93,7 +93,7 @@ set @save_dbug = @@session.debug_dbug;
set @@session.debug_dbug='d,simulate_checksum_test_failure'; set @@session.debug_dbug='d,simulate_checksum_test_failure';
show binlog events; show binlog events;
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error
set debug_dbug= @save_dbug; SET debug_dbug= @save_dbug;
set @@global.master_verify_checksum = default; set @@global.master_verify_checksum = default;
connection slave; connection slave;
connection slave; connection slave;
......
...@@ -265,7 +265,7 @@ DROP TABLE t1, t2; ...@@ -265,7 +265,7 @@ DROP TABLE t1, t2;
--echo # --echo #
--let $datadir= `select @@datadir` --let $datadir= `select @@datadir`
set @saved_dbug= @@global.debug_dbug; SET @saved_dbug= @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,ib_purge_virtual_mdev_16222_1,ib_purge_virtual_mdev_16222_2"; set global debug_dbug= "+d,ib_purge_virtual_mdev_16222_1,ib_purge_virtual_mdev_16222_2";
create table t1 ( create table t1 (
...@@ -349,7 +349,7 @@ SET GLOBAL innodb_debug_sync = "ib_open_after_dict_open " ...@@ -349,7 +349,7 @@ SET GLOBAL innodb_debug_sync = "ib_open_after_dict_open "
# In 10.2 trx_undo_roll_ptr_is_insert(t_roll_ptr) condition never pass in purge, # In 10.2 trx_undo_roll_ptr_is_insert(t_roll_ptr) condition never pass in purge,
# so this condition is forced to pass in row_vers_old_has_index_entry # so this condition is forced to pass in row_vers_old_has_index_entry
set @saved_dbug= @@global.debug_dbug; SET @saved_dbug= @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,ib_purge_virtual_index_callback"; set global debug_dbug= "+d,ib_purge_virtual_index_callback";
# The purge starts from REPLACE command. To avoid possible race, separate # The purge starts from REPLACE command. To avoid possible race, separate
......
...@@ -8,10 +8,10 @@ select f1, substring(f2, 1, 40) from t1; ...@@ -8,10 +8,10 @@ select f1, substring(f2, 1, 40) from t1;
f1 substring(f2, 1, 40) f1 substring(f2, 1, 40)
1 **************************************** 1 ****************************************
set @saved_debug = @@session.debug_dbug; set @saved_debug = @@session.debug_dbug;
set debug_dbug = 'd,row_ins_index_entry_timeout'; SET debug_dbug = 'd,row_ins_index_entry_timeout';
update t1 set f1 = 3; update t1 set f1 = 3;
select f1, substring(f2, 1, 40) from t1; select f1, substring(f2, 1, 40) from t1;
f1 substring(f2, 1, 40) f1 substring(f2, 1, 40)
3 **************************************** 3 ****************************************
drop table t1; drop table t1;
set debug_dbug= @saved_debug; SET debug_dbug= @saved_debug;
...@@ -5,10 +5,10 @@ create table t1 (f1 int primary key, f2 int, f3 int, unique key k1(f2), ...@@ -5,10 +5,10 @@ create table t1 (f1 int primary key, f2 int, f3 int, unique key k1(f2),
key k2(f3)) engine=innodb; key k2(f3)) engine=innodb;
insert into t1 values (14, 24, 34); insert into t1 values (14, 24, 34);
set @old_dbug= @@session.debug_dbug; set @old_dbug= @@session.debug_dbug;
set debug_dbug = '+d,row_ins_sec_index_entry_timeout'; SET debug_dbug = '+d,row_ins_sec_index_entry_timeout';
replace into t1 values (14, 25, 34); replace into t1 values (14, 25, 34);
select * from t1; select * from t1;
f1 f2 f3 f1 f2 f3
14 25 34 14 25 34
drop table t1; drop table t1;
set debug_dbug = @old_dbug; SET debug_dbug = @old_dbug;
call mtr.add_suppression("InnoDB: Warning: Index.*"); call mtr.add_suppression("InnoDB: Warning: Index.*");
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set DEBUG_DBUG='+d,ib_ha_innodb_stat_not_initialized'; set DEBUG_DBUG='+d,ib_ha_innodb_stat_not_initialized';
create table t1(a int not null primary key, b int, c int, key(b), key(c)) engine=innodb; create table t1(a int not null primary key, b int, c int, key(b), key(c)) engine=innodb;
create procedure innodb_insert_proc (repeat_count int) create procedure innodb_insert_proc (repeat_count int)
...@@ -30,4 +30,4 @@ count(1) ...@@ -30,4 +30,4 @@ count(1)
781 781
drop procedure innodb_insert_proc; drop procedure innodb_insert_proc;
drop table t1; drop table t1;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
CREATE TABLE bug11754376 (c INT) ENGINE=INNODB; CREATE TABLE bug11754376 (c INT) ENGINE=INNODB;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET SESSION DEBUG_DBUG='+d,test_normalize_table_name_low'; SET SESSION DEBUG_DBUG='+d,test_normalize_table_name_low';
DROP TABLE bug11754376; DROP TABLE bug11754376;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
SET GLOBAL innodb_file_per_table=0; SET GLOBAL innodb_file_per_table=0;
create table bug56947(a int not null) engine = innodb; create table bug56947(a int not null) engine = innodb;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET DEBUG_DBUG='+d,ib_rebuild_cannot_rename'; SET DEBUG_DBUG='+d,ib_rebuild_cannot_rename';
alter table bug56947 add unique index (a); alter table bug56947 add unique index (a);
ERROR HY000: Got error 11 "xxx" from storage engine InnoDB ERROR HY000: Got error 11 "xxx" from storage engine InnoDB
...@@ -9,4 +9,4 @@ Table Op Msg_type Msg_text ...@@ -9,4 +9,4 @@ Table Op Msg_type Msg_text
test.bug56947 check status OK test.bug56947 check status OK
drop table bug56947; drop table bug56947;
SET @@global.innodb_file_per_table=DEFAULT; SET @@global.innodb_file_per_table=DEFAULT;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -24,7 +24,7 @@ test.corrupt_bit_test_ā check Warning InnoDB: Index idx is marked as corrupted ...@@ -24,7 +24,7 @@ test.corrupt_bit_test_ā check Warning InnoDB: Index idx is marked as corrupted
test.corrupt_bit_test_ā check Warning InnoDB: Index idxā is marked as corrupted test.corrupt_bit_test_ā check Warning InnoDB: Index idxā is marked as corrupted
test.corrupt_bit_test_ā check Warning InnoDB: Index idxē is marked as corrupted test.corrupt_bit_test_ā check Warning InnoDB: Index idxē is marked as corrupted
test.corrupt_bit_test_ā check error Corrupt test.corrupt_bit_test_ā check error Corrupt
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
CREATE INDEX idx3 ON corrupt_bit_test_ā(b, c); CREATE INDEX idx3 ON corrupt_bit_test_ā(b, c);
ERROR HY000: Index idx is corrupted ERROR HY000: Index idx is corrupted
CREATE INDEX idx4 ON corrupt_bit_test_ā(b, z); CREATE INDEX idx4 ON corrupt_bit_test_ā(b, z);
......
...@@ -4,7 +4,7 @@ drop table if exists t1; ...@@ -4,7 +4,7 @@ drop table if exists t1;
connection con1; connection con1;
create table t1 (id integer, x integer) engine = InnoDB; create table t1 (id integer, x integer) engine = InnoDB;
insert into t1 values(0, 0); insert into t1 values(0, 0);
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set DEBUG_DBUG='+d,fatal-semaphore-timeout'; set DEBUG_DBUG='+d,fatal-semaphore-timeout';
set autocommit=0; set autocommit=0;
# Sending query on con1, # Sending query on con1,
...@@ -22,6 +22,6 @@ connection default; ...@@ -22,6 +22,6 @@ connection default;
# Waitting for reconnect after mysqld restarts # Waitting for reconnect after mysqld restarts
# Reconnected after mysqld was successfully restarted # Reconnected after mysqld was successfully restarted
# Cleaning up before exit # Cleaning up before exit
set debug_dbug = @saved_dbug; SET debug_dbug = @saved_dbug;
drop table if exists t1; drop table if exists t1;
# Clean exit # Clean exit
...@@ -7,10 +7,10 @@ insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c'); ...@@ -7,10 +7,10 @@ insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c');
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
SET debug_dbug = '+d,ib_err_trunc_assigning_undo_log'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_assigning_undo_log';
truncate table t; truncate table t;
ERROR HY000: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB ERROR HY000: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
...@@ -20,10 +20,10 @@ i f c ...@@ -20,10 +20,10 @@ i f c
2 2.2 b 2 2.2 b
3 3.3 c 3 3.3 c
# 2. Error while preparing for truncate # 2. Error while preparing for truncate
SET debug_dbug = '+d,ib_err_trunc_preparing_for_truncate'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_preparing_for_truncate';
truncate table t; truncate table t;
ERROR HY000: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB ERROR HY000: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
...@@ -33,10 +33,10 @@ i f c ...@@ -33,10 +33,10 @@ i f c
2 2.2 b 2 2.2 b
3 3.3 c 3 3.3 c
# 3. Error while dropping/creating indexes # 3. Error while dropping/creating indexes
SET debug_dbug = '+d,ib_err_trunc_drop_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_drop_index';
truncate table t; truncate table t;
ERROR HY000: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB ERROR HY000: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check Warning InnoDB: Index PRIMARY is marked as corrupted test.t check Warning InnoDB: Index PRIMARY is marked as corrupted
...@@ -50,10 +50,10 @@ insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c'); ...@@ -50,10 +50,10 @@ insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c');
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
SET debug_dbug = '+d,ib_err_trunc_create_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_create_index';
truncate table t; truncate table t;
ERROR HY000: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB ERROR HY000: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check Warning InnoDB: Index PRIMARY is marked as corrupted test.t check Warning InnoDB: Index PRIMARY is marked as corrupted
...@@ -67,9 +67,9 @@ insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c'); ...@@ -67,9 +67,9 @@ insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c');
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
SET debug_dbug = '+d,ib_err_trunc_temp_recreate_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_temp_recreate_index';
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
...@@ -85,9 +85,9 @@ insert into t values (1, 1.1, 'mysql is now oracle company'), ...@@ -85,9 +85,9 @@ insert into t values (1, 1.1, 'mysql is now oracle company'),
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
SET debug_dbug = '+d,ib_err_trunc_temp_recreate_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_temp_recreate_index';
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
...@@ -103,9 +103,9 @@ insert into t values (1, 1.1, 'mysql is now oracle company'), ...@@ -103,9 +103,9 @@ insert into t values (1, 1.1, 'mysql is now oracle company'),
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
SET debug_dbug = '+d,ib_err_trunc_temp_recreate_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_temp_recreate_index';
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t check status OK test.t check status OK
......
...@@ -12,8 +12,8 @@ create table t1 (f1 int primary key, f2 blob) engine = innodb; ...@@ -12,8 +12,8 @@ create table t1 (f1 int primary key, f2 blob) engine = innodb;
insert into t1 values (1, repeat('*', 50000)); insert into t1 values (1, repeat('*', 50000));
select f1, substring(f2, 1, 40) from t1; select f1, substring(f2, 1, 40) from t1;
set @saved_debug = @@session.debug_dbug; set @saved_debug = @@session.debug_dbug;
set debug_dbug = 'd,row_ins_index_entry_timeout'; SET debug_dbug = 'd,row_ins_index_entry_timeout';
update t1 set f1 = 3; update t1 set f1 = 3;
select f1, substring(f2, 1, 40) from t1; select f1, substring(f2, 1, 40) from t1;
drop table t1; drop table t1;
set debug_dbug= @saved_debug; SET debug_dbug= @saved_debug;
...@@ -9,8 +9,8 @@ create table t1 (f1 int primary key, f2 int, f3 int, unique key k1(f2), ...@@ -9,8 +9,8 @@ create table t1 (f1 int primary key, f2 int, f3 int, unique key k1(f2),
key k2(f3)) engine=innodb; key k2(f3)) engine=innodb;
insert into t1 values (14, 24, 34); insert into t1 values (14, 24, 34);
set @old_dbug= @@session.debug_dbug; set @old_dbug= @@session.debug_dbug;
set debug_dbug = '+d,row_ins_sec_index_entry_timeout'; SET debug_dbug = '+d,row_ins_sec_index_entry_timeout';
replace into t1 values (14, 25, 34); replace into t1 values (14, 25, 34);
select * from t1; select * from t1;
drop table t1; drop table t1;
set debug_dbug = @old_dbug; SET debug_dbug = @old_dbug;
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
call mtr.add_suppression("InnoDB: Warning: Index.*"); call mtr.add_suppression("InnoDB: Warning: Index.*");
# This caused crash earlier # This caused crash earlier
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set DEBUG_DBUG='+d,ib_ha_innodb_stat_not_initialized'; set DEBUG_DBUG='+d,ib_ha_innodb_stat_not_initialized';
create table t1(a int not null primary key, b int, c int, key(b), key(c)) engine=innodb; create table t1(a int not null primary key, b int, c int, key(b), key(c)) engine=innodb;
...@@ -37,4 +37,4 @@ select count(1) from t1 where c between 7 and 787; ...@@ -37,4 +37,4 @@ select count(1) from t1 where c between 7 and 787;
drop procedure innodb_insert_proc; drop procedure innodb_insert_proc;
drop table t1; drop table t1;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
CREATE TABLE bug11754376 (c INT) ENGINE=INNODB; CREATE TABLE bug11754376 (c INT) ENGINE=INNODB;
# This will invoke test_normalize_table_name_low() in debug builds # This will invoke test_normalize_table_name_low() in debug builds
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET SESSION DEBUG_DBUG='+d,test_normalize_table_name_low'; SET SESSION DEBUG_DBUG='+d,test_normalize_table_name_low';
DROP TABLE bug11754376; DROP TABLE bug11754376;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
SET GLOBAL innodb_file_per_table=0; SET GLOBAL innodb_file_per_table=0;
create table bug56947(a int not null) engine = innodb; create table bug56947(a int not null) engine = innodb;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET DEBUG_DBUG='+d,ib_rebuild_cannot_rename'; SET DEBUG_DBUG='+d,ib_rebuild_cannot_rename';
--replace_regex /"[^"]*"/"xxx"/ --replace_regex /"[^"]*"/"xxx"/
--error ER_GET_ERRNO --error ER_GET_ERRNO
...@@ -16,4 +16,4 @@ check table bug56947; ...@@ -16,4 +16,4 @@ check table bug56947;
drop table bug56947; drop table bug56947;
SET @@global.innodb_file_per_table=DEFAULT; SET @@global.innodb_file_per_table=DEFAULT;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -36,7 +36,7 @@ select count(*) from corrupt_bit_test_ā; ...@@ -36,7 +36,7 @@ select count(*) from corrupt_bit_test_ā;
SET @save_dbug = @@SESSION.debug_dbug; SET @save_dbug = @@SESSION.debug_dbug;
SET debug_dbug = '+d,dict_set_index_corrupted'; SET debug_dbug = '+d,dict_set_index_corrupted';
check table corrupt_bit_test_ā; check table corrupt_bit_test_ā;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
# Cannot create new indexes while corrupted indexes exist # Cannot create new indexes while corrupted indexes exist
--error ER_INDEX_CORRUPT --error ER_INDEX_CORRUPT
......
...@@ -17,7 +17,7 @@ eval create table t1 (id integer, x integer) engine = InnoDB; ...@@ -17,7 +17,7 @@ eval create table t1 (id integer, x integer) engine = InnoDB;
insert into t1 values(0, 0); insert into t1 values(0, 0);
# Enable the debug injection. # Enable the debug injection.
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set DEBUG_DBUG='+d,fatal-semaphore-timeout'; set DEBUG_DBUG='+d,fatal-semaphore-timeout';
set autocommit=0; set autocommit=0;
...@@ -108,7 +108,7 @@ source include/wait_until_connected_again.inc; ...@@ -108,7 +108,7 @@ source include/wait_until_connected_again.inc;
--echo # Cleaning up before exit --echo # Cleaning up before exit
--disable_warnings --disable_warnings
set debug_dbug = @saved_dbug; SET debug_dbug = @saved_dbug;
drop table if exists t1; drop table if exists t1;
--enable_warnings --enable_warnings
......
...@@ -33,8 +33,8 @@ while ($i) ...@@ -33,8 +33,8 @@ while ($i)
--let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect --let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect
--exec echo "wait" > $_expect_file_name --exec echo "wait" > $_expect_file_name
set debug_dbug = '+d,increase_mtr_checkpoint_size'; SET debug_dbug = '+d,increase_mtr_checkpoint_size';
set debug_dbug = '+d,crash_after_checkpoint'; SET debug_dbug = '+d,crash_after_checkpoint';
--error 2013 --error 2013
set global innodb_log_checkpoint_now = 1; set global innodb_log_checkpoint_now = 1;
...@@ -64,7 +64,7 @@ while ($i) ...@@ -64,7 +64,7 @@ while ($i)
--enable_query_log --enable_query_log
--exec echo "wait" > $_expect_file_name --exec echo "wait" > $_expect_file_name
set debug_dbug = '+d,crash_after_checkpoint'; SET debug_dbug = '+d,crash_after_checkpoint';
--error 2013 --error 2013
set global innodb_log_checkpoint_now = 1; set global innodb_log_checkpoint_now = 1;
......
...@@ -14,26 +14,26 @@ ENGINE = InnoDB; ...@@ -14,26 +14,26 @@ ENGINE = InnoDB;
insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c'); insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c');
check table t; check table t;
# #
SET debug_dbug = '+d,ib_err_trunc_assigning_undo_log'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_assigning_undo_log';
--error ER_GET_ERRNO --error ER_GET_ERRNO
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
select * from t; select * from t;
--echo # 2. Error while preparing for truncate --echo # 2. Error while preparing for truncate
SET debug_dbug = '+d,ib_err_trunc_preparing_for_truncate'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_preparing_for_truncate';
--error ER_GET_ERRNO --error ER_GET_ERRNO
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
select * from t; select * from t;
--echo # 3. Error while dropping/creating indexes --echo # 3. Error while dropping/creating indexes
SET debug_dbug = '+d,ib_err_trunc_drop_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_drop_index';
--error ER_GET_ERRNO --error ER_GET_ERRNO
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
--error ER_TABLE_CORRUPT,ER_GET_ERRNO --error ER_TABLE_CORRUPT,ER_GET_ERRNO
select * from t; select * from t;
...@@ -44,10 +44,10 @@ ENGINE = InnoDB; ...@@ -44,10 +44,10 @@ ENGINE = InnoDB;
insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c'); insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c');
check table t; check table t;
SET debug_dbug = '+d,ib_err_trunc_create_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_create_index';
--error ER_GET_ERRNO --error ER_GET_ERRNO
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
--error ER_TABLE_CORRUPT,ER_GET_ERRNO --error ER_TABLE_CORRUPT,ER_GET_ERRNO
select * from t; select * from t;
...@@ -58,9 +58,9 @@ ENGINE = InnoDB; ...@@ -58,9 +58,9 @@ ENGINE = InnoDB;
insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c'); insert into t values (1, 1.1, 'a'), (2, 2.2, 'b'), (3, 3.3, 'c');
check table t; check table t;
SET debug_dbug = '+d,ib_err_trunc_temp_recreate_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_temp_recreate_index';
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
select * from t; select * from t;
...@@ -73,9 +73,9 @@ insert into t values (1, 1.1, 'mysql is now oracle company'), ...@@ -73,9 +73,9 @@ insert into t values (1, 1.1, 'mysql is now oracle company'),
(2, 2.2, 'innodb is part of mysql'), (2, 2.2, 'innodb is part of mysql'),
(3, 3.3, 'innodb is default storage engine of mysql'); (3, 3.3, 'innodb is default storage engine of mysql');
check table t; check table t;
SET debug_dbug = '+d,ib_err_trunc_temp_recreate_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_temp_recreate_index';
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
select * from t; select * from t;
...@@ -88,9 +88,9 @@ insert into t values (1, 1.1, 'mysql is now oracle company'), ...@@ -88,9 +88,9 @@ insert into t values (1, 1.1, 'mysql is now oracle company'),
(2, 2.2, 'innodb is part of mysql'), (2, 2.2, 'innodb is part of mysql'),
(3, 3.3, 'innodb is default storage engine of mysql'); (3, 3.3, 'innodb is default storage engine of mysql');
check table t; check table t;
SET debug_dbug = '+d,ib_err_trunc_temp_recreate_index'; SET @@SESSION.debug_dbug = '+d,ib_err_trunc_temp_recreate_index';
truncate table t; truncate table t;
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
check table t; check table t;
select * from t order by i; select * from t order by i;
......
...@@ -17,7 +17,7 @@ INSERT INTO t1 VALUES('test'); ...@@ -17,7 +17,7 @@ INSERT INTO t1 VALUES('test');
CREATE TABLE t2 (f1 char(100), FULLTEXT idx1(f1))ENGINE=InnoDB; CREATE TABLE t2 (f1 char(100), FULLTEXT idx1(f1))ENGINE=InnoDB;
INSERT INTO t2 VALUES('mariadb'); INSERT INTO t2 VALUES('mariadb');
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
SET GLOBAL debug_dbug ='+d,fts_instrument_sync_request,ib_optimize_wq_hang'; SET GLOBAL debug_dbug ='+d,fts_instrument_sync_request,ib_optimize_wq_hang';
SET DEBUG_SYNC= 'fts_instrument_sync_request SET DEBUG_SYNC= 'fts_instrument_sync_request
SIGNAL drop_index_start WAIT_FOR sync_op'; SIGNAL drop_index_start WAIT_FOR sync_op';
...@@ -29,7 +29,7 @@ ALTER TABLE t2 drop index idx1; ...@@ -29,7 +29,7 @@ ALTER TABLE t2 drop index idx1;
connection default; connection default;
set DEBUG_SYNC= 'now SIGNAL fts_drop_index'; set DEBUG_SYNC= 'now SIGNAL fts_drop_index';
connection con1; connection con1;
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
drop table t1, t2; drop table t1, t2;
connection default; connection default;
set DEBUG_SYNC=RESET; set DEBUG_SYNC=RESET;
...@@ -29,7 +29,7 @@ CREATE TABLE t2 (f1 char(100), FULLTEXT idx1(f1))ENGINE=InnoDB; ...@@ -29,7 +29,7 @@ CREATE TABLE t2 (f1 char(100), FULLTEXT idx1(f1))ENGINE=InnoDB;
INSERT INTO t2 VALUES('mariadb'); INSERT INTO t2 VALUES('mariadb');
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
SET GLOBAL debug_dbug ='+d,fts_instrument_sync_request,ib_optimize_wq_hang'; SET GLOBAL debug_dbug ='+d,fts_instrument_sync_request,ib_optimize_wq_hang';
SET DEBUG_SYNC= 'fts_instrument_sync_request SET DEBUG_SYNC= 'fts_instrument_sync_request
SIGNAL drop_index_start WAIT_FOR sync_op'; SIGNAL drop_index_start WAIT_FOR sync_op';
...@@ -46,7 +46,7 @@ set DEBUG_SYNC= 'now SIGNAL fts_drop_index'; ...@@ -46,7 +46,7 @@ set DEBUG_SYNC= 'now SIGNAL fts_drop_index';
connection con1; connection con1;
reap; reap;
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
drop table t1, t2; drop table t1, t2;
connection default; connection default;
set DEBUG_SYNC=RESET; set DEBUG_SYNC=RESET;
...@@ -53,7 +53,7 @@ SET @save_dbug = @@SESSION.debug_dbug; ...@@ -53,7 +53,7 @@ SET @save_dbug = @@SESSION.debug_dbug;
SET debug_dbug='+d,row_merge_ins_spatial_fail'; SET debug_dbug='+d,row_merge_ins_spatial_fail';
--error ER_GET_ERRNO --error ER_GET_ERRNO
create spatial index idx2 on t1(c2); create spatial index idx2 on t1(c2);
SET debug_dbug = @save_dbug; SET @@SESSION.debug_dbug = @save_dbug;
show create table t1; show create table t1;
# Check table. # Check table.
......
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
create table `t1` (`c1` char(1) default null,`c2` char(10) default null, create table `t1` (`c1` char(1) default null,`c2` char(10) default null,
key (`c1`)) key (`c1`))
...@@ -8,4 +8,4 @@ select * from `t1` where `c1`='3' for update; ...@@ -8,4 +8,4 @@ select * from `t1` where `c1`='3' for update;
c1 c2 c1 c2
3 NULL 3 NULL
drop table `t1`; drop table `t1`;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
# #
# Bug#40992 - InnoDB: Crash when engine_condition_pushdown is on # Bug#40992 - InnoDB: Crash when engine_condition_pushdown is on
# #
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
CREATE TABLE t ( CREATE TABLE t (
dummy INT PRIMARY KEY, dummy INT PRIMARY KEY,
...@@ -14,4 +14,4 @@ dummy a b ...@@ -14,4 +14,4 @@ dummy a b
3 3 3 3 3 3
5 5 5 5 5 5
DROP TABLE t; DROP TABLE t;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
drop table if exists `t1`; drop table if exists `t1`;
Warnings: Warnings:
...@@ -7,4 +7,4 @@ create table `t1` (`c` bigint, key(`c`),`a` int)engine=innodb; ...@@ -7,4 +7,4 @@ create table `t1` (`c` bigint, key(`c`),`a` int)engine=innodb;
insert into `t1` values(2,2); insert into `t1` values(2,2);
delete `t1` from `t1` `a`, `t1` where `a`.`a`=`t1`.`c` ; delete `t1` from `t1` `a`, `t1` where `a`.`a`=`t1`.`c` ;
drop table `t1`; drop table `t1`;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
...@@ -253,4 +253,4 @@ Warning 1292 Truncated incorrect DOUBLE value: 'd' ...@@ -253,4 +253,4 @@ Warning 1292 Truncated incorrect DOUBLE value: 'd'
Warning 1292 Truncated incorrect DOUBLE value: 'd' Warning 1292 Truncated incorrect DOUBLE value: 'd'
Warning 1292 Truncated incorrect DOUBLE value: 'd' Warning 1292 Truncated incorrect DOUBLE value: 'd'
drop table `table5`; drop table `table5`;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 DATE, PRIMARY CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 DATE, PRIMARY
KEY(c1), UNIQUE INDEX(c2)) engine=innodb; KEY(c1), UNIQUE INDEX(c2)) engine=innodb;
...@@ -10,4 +10,4 @@ SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2; ...@@ -10,4 +10,4 @@ SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2;
c1 c2 c3 c1 c2 c3
08:29:45 NULL 2009-02-01 08:29:45 NULL 2009-02-01
drop table `t1`; drop table `t1`;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
# #
# Bug#43360 - Server crash with a simple multi-table update # Bug#43360 - Server crash with a simple multi-table update
# #
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
CREATE TABLE t1 ( CREATE TABLE t1 (
a CHAR(2) NOT NULL PRIMARY KEY, a CHAR(2) NOT NULL PRIMARY KEY,
...@@ -43,4 +43,4 @@ AB Sweden ...@@ -43,4 +43,4 @@ AB Sweden
MS United States of Ame MS United States of Ame
JA USA JA USA
DROP TABLE t1,t2; DROP TABLE t1,t2;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
# #
# Bug#43448 - Server crashes on multi table delete with Innodb # Bug#43448 - Server crashes on multi table delete with Innodb
# #
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
CREATE TABLE t1 ( CREATE TABLE t1 (
id1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY, id1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
...@@ -29,4 +29,4 @@ DELETE t1, t2, t3 ...@@ -29,4 +29,4 @@ DELETE t1, t2, t3
FROM t1, t2, t3 FROM t1, t2, t3
WHERE t1.id1 = t2.id2 AND t2.id2 = t3.id3 AND t1.id1 > 5; WHERE t1.id1 = t2.id2 AND t2.id2 = t3.id3 AND t1.id1 > 5;
DROP TABLE t1, t2, t3; DROP TABLE t1, t2, t3;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
set storage_engine=innodb; set storage_engine=innodb;
set @save_time_zone= @@time_zone; set @save_time_zone= @@time_zone;
set time_zone='+03:00'; set time_zone='+03:00';
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
CREATE TABLE t1(c1 TIMESTAMP NOT NULL, c2 TIMESTAMP NULL, c3 DATE, c4 DATETIME, PRIMARY KEY(c1), UNIQUE INDEX(c2)); CREATE TABLE t1(c1 TIMESTAMP NOT NULL, c2 TIMESTAMP NULL, c3 DATE, c4 DATETIME, PRIMARY KEY(c1), UNIQUE INDEX(c2));
INSERT INTO t1 VALUES('98-12-31 11:30:45','98.12.31 11+30+45','98-12-31 11:30:45','98.12.31 11+30+45'),('98/12/30 11*30*45','98@12@30 11^30^45','98/12/30 11*30*45','98@12@30 11^30^45'),('98-12-29','98.12.29','98-12-29','98.12.29'),('98/12/28','98@12@28','98/12/28','98@12@28'); INSERT INTO t1 VALUES('98-12-31 11:30:45','98.12.31 11+30+45','98-12-31 11:30:45','98.12.31 11+30+45'),('98/12/30 11*30*45','98@12@30 11^30^45','98/12/30 11*30*45','98@12@30 11^30^45'),('98-12-29','98.12.29','98-12-29','98.12.29'),('98/12/28','98@12@28','98/12/28','98@12@28');
...@@ -101,4 +101,4 @@ c1 c2 c3 c4 ...@@ -101,4 +101,4 @@ c1 c2 c3 c4
2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00 2038-01-09 03:14:07 2038-01-09 03:14:07 2009-01-05 2009-01-06 00:00:00
DROP TABLE t1; DROP TABLE t1;
set time_zone= @save_time_zone; set time_zone= @save_time_zone;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--source include/have_innodb.inc --source include/have_innodb.inc
# crash requires this # crash requires this
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
create table `t1` (`c1` char(1) default null,`c2` char(10) default null, create table `t1` (`c1` char(1) default null,`c2` char(10) default null,
...@@ -13,4 +13,4 @@ engine=innodb default charset=latin1; ...@@ -13,4 +13,4 @@ engine=innodb default charset=latin1;
insert into `t1` values ('3',null); insert into `t1` values ('3',null);
select * from `t1` where `c1`='3' for update; select * from `t1` where `c1`='3' for update;
drop table `t1`; drop table `t1`;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
--source include/have_debug.inc --source include/have_debug.inc
--source include/have_innodb.inc --source include/have_innodb.inc
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
# Crash requires that we enable Index Condition Pushdown in InnoDB # Crash requires that we enable Index Condition Pushdown in InnoDB
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
...@@ -20,4 +20,4 @@ INSERT INTO t VALUES (1,1,1),(3,3,3),(5,5,5); ...@@ -20,4 +20,4 @@ INSERT INTO t VALUES (1,1,1),(3,3,3),(5,5,5);
SELECT * FROM t WHERE a > 2 FOR UPDATE; SELECT * FROM t WHERE a > 2 FOR UPDATE;
DROP TABLE t; DROP TABLE t;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
--source include/have_innodb.inc --source include/have_innodb.inc
# crash requires this # crash requires this
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
drop table if exists `t1`; drop table if exists `t1`;
...@@ -13,4 +13,4 @@ create table `t1` (`c` bigint, key(`c`),`a` int)engine=innodb; ...@@ -13,4 +13,4 @@ create table `t1` (`c` bigint, key(`c`),`a` int)engine=innodb;
insert into `t1` values(2,2); insert into `t1` values(2,2);
delete `t1` from `t1` `a`, `t1` where `a`.`a`=`t1`.`c` ; delete `t1` from `t1` `a`, `t1` where `a`.`a`=`t1`.`c` ;
drop table `t1`; drop table `t1`;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
--source include/have_innodb.inc --source include/have_innodb.inc
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
# Valgrind errors happen only with this: # Valgrind errors happen only with this:
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
...@@ -247,4 +247,4 @@ UNLOCK TABLES; ...@@ -247,4 +247,4 @@ UNLOCK TABLES;
select * from `table5` where (col2 <= '6566-06-15' AND col24 <> 'd') group by `col83` order by `col83` desc ; select * from `table5` where (col2 <= '6566-06-15' AND col24 <> 'd') group by `col83` order by `col83` desc ;
drop table `table5`; drop table `table5`;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--source include/have_debug.inc --source include/have_debug.inc
--source include/have_innodb.inc --source include/have_innodb.inc
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 DATE, PRIMARY CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 DATE, PRIMARY
...@@ -16,4 +16,4 @@ SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2; ...@@ -16,4 +16,4 @@ SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2;
SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2; SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2;
drop table `t1`; drop table `t1`;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
--source include/have_debug.inc --source include/have_debug.inc
--source include/have_innodb.inc --source include/have_innodb.inc
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
# crash requires this # crash requires this
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
...@@ -43,4 +43,4 @@ SELECT * FROM t1; ...@@ -43,4 +43,4 @@ SELECT * FROM t1;
SELECT * FROM t2; SELECT * FROM t2;
DROP TABLE t1,t2; DROP TABLE t1,t2;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
--source include/have_debug.inc --source include/have_debug.inc
--source include/have_innodb.inc --source include/have_innodb.inc
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
# crash requires ICP support in InnoDB # crash requires ICP support in InnoDB
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
...@@ -59,4 +59,4 @@ FROM t1, t2, t3 ...@@ -59,4 +59,4 @@ FROM t1, t2, t3
WHERE t1.id1 = t2.id2 AND t2.id2 = t3.id3 AND t1.id1 > 5; WHERE t1.id1 = t2.id2 AND t2.id2 = t3.id3 AND t1.id1 > 5;
DROP TABLE t1, t2, t3; DROP TABLE t1, t2, t3;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
set storage_engine=innodb; set storage_engine=innodb;
set @save_time_zone= @@time_zone; set @save_time_zone= @@time_zone;
set time_zone='+03:00'; set time_zone='+03:00';
set @saved_dbug = @@session.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
set session debug_dbug="+d,optimizer_innodb_icp"; set session debug_dbug="+d,optimizer_innodb_icp";
######## Running INSERT tests for TIMESTAMP ######## ######## Running INSERT tests for TIMESTAMP ########
...@@ -84,4 +84,4 @@ SELECT * FROM t1 WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07') ORDER ...@@ -84,4 +84,4 @@ SELECT * FROM t1 WHERE c2 IN ('1971-01-01 00:00:01','2038-01-09 03:14:07') ORDER
DROP TABLE t1; DROP TABLE t1;
set time_zone= @save_time_zone; set time_zone= @save_time_zone;
set debug_dbug= @saved_dbug; SET debug_dbug= @saved_dbug;
...@@ -22,7 +22,7 @@ current_user() ...@@ -22,7 +22,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again";
connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set ...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
revoke select on test.* from 'root'@'192.0.2.4'; revoke select on test.* from 'root'@'192.0.2.4';
drop user 'root'@'192.0.2.4'; drop user 'root'@'192.0.2.4';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again";
ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -22,7 +22,7 @@ current_user() ...@@ -22,7 +22,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4";
connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set ...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
revoke select on test.* from 'root'@'192.0.2.4'; revoke select on test.* from 'root'@'192.0.2.4';
drop user 'root'@'192.0.2.4'; drop user 'root'@'192.0.2.4';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4";
ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -22,7 +22,7 @@ current_user() ...@@ -22,7 +22,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4";
connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN null ...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN null
LAST_ERROR_SEEN null LAST_ERROR_SEEN null
revoke select on test.* from 'root'@'santa.claus.ipv4.example.com'; revoke select on test.* from 'root'@'santa.claus.ipv4.example.com';
drop user 'root'@'santa.claus.ipv4.example.com'; drop user 'root'@'santa.claus.ipv4.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4";
ERROR HY000: Host 'santa.claus.ipv4.example.com' is not allowed to connect to this MariaDB server ERROR HY000: Host 'santa.claus.ipv4.example.com' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -24,7 +24,7 @@ current_user() ...@@ -24,7 +24,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_noname"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_noname";
connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -104,4 +104,4 @@ revoke select on test.* from 'root'@'santa.claus.ipv4.example.com'; ...@@ -104,4 +104,4 @@ revoke select on test.* from 'root'@'santa.claus.ipv4.example.com';
revoke select on test.* from 'root'@'192.0.2.4'; revoke select on test.* from 'root'@'192.0.2.4';
drop user 'root'@'santa.claus.ipv4.example.com'; drop user 'root'@'santa.claus.ipv4.example.com';
drop user 'root'@'192.0.2.4'; drop user 'root'@'192.0.2.4';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_noname"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_noname";
ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -24,7 +24,7 @@ current_user() ...@@ -24,7 +24,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4";
uninstall plugin test_plugin_server; uninstall plugin test_plugin_server;
ERROR HY000: Plugin 'test_plugin_server' is not loaded ERROR HY000: Plugin 'test_plugin_server' is not loaded
...@@ -195,5 +195,5 @@ REVOKE PROXY ON 'plug_dest'@'santa.claus.ipv4.example.com' ...@@ -195,5 +195,5 @@ REVOKE PROXY ON 'plug_dest'@'santa.claus.ipv4.example.com'
FROM 'plug'@'santa.claus.ipv4.example.com'; FROM 'plug'@'santa.claus.ipv4.example.com';
DROP USER 'plug'@'santa.claus.ipv4.example.com'; DROP USER 'plug'@'santa.claus.ipv4.example.com';
DROP USER 'plug_dest'@'santa.claus.ipv4.example.com'; DROP USER 'plug_dest'@'santa.claus.ipv4.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
delete from mysql.plugin where name='test_plugin_server'; delete from mysql.plugin where name='test_plugin_server';
...@@ -25,7 +25,7 @@ current_user() ...@@ -25,7 +25,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4,native_password_bad_reply"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4,native_password_bad_reply";
ERROR 08S01: Bad handshake ERROR 08S01: Bad handshake
connection default; connection default;
...@@ -428,4 +428,4 @@ drop user 'root'@'santa.claus.ipv4.example.com'; ...@@ -428,4 +428,4 @@ drop user 'root'@'santa.claus.ipv4.example.com';
revoke select on test.* from 'quota'@'santa.claus.ipv4.example.com'; revoke select on test.* from 'quota'@'santa.claus.ipv4.example.com';
drop user 'quota'@'santa.claus.ipv4.example.com'; drop user 'quota'@'santa.claus.ipv4.example.com';
set global max_connect_errors = @saved_max_connect_errors; set global max_connect_errors = @saved_max_connect_errors;
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_format_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_format_ipv4";
ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -25,7 +25,7 @@ current_user() ...@@ -25,7 +25,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4";
connect con2a,"127.0.0.1",quota,,test,$MASTER_MYPORT,; connect con2a,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
select "Con2a is alive"; select "Con2a is alive";
...@@ -703,4 +703,4 @@ disconnect tmp_con7; ...@@ -703,4 +703,4 @@ disconnect tmp_con7;
set global max_connections = @saved_max_connections; set global max_connections = @saved_max_connections;
set global max_user_connections = @saved_max_user_connections; set global max_user_connections = @saved_max_user_connections;
drop user 'quota'@'santa.claus.ipv4.example.com'; drop user 'quota'@'santa.claus.ipv4.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -24,7 +24,7 @@ current_user() ...@@ -24,7 +24,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_again";
connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -179,4 +179,4 @@ revoke select on test.* from 'root'@'192.0.2.4'; ...@@ -179,4 +179,4 @@ revoke select on test.* from 'root'@'192.0.2.4';
revoke select on test.* from 'root'@'santa.claus.ipv4.example.com'; revoke select on test.* from 'root'@'santa.claus.ipv4.example.com';
drop user 'root'@'192.0.2.4'; drop user 'root'@'192.0.2.4';
drop user 'root'@'santa.claus.ipv4.example.com'; drop user 'root'@'santa.claus.ipv4.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_again";
ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -143,4 +143,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -143,4 +143,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -22,7 +22,7 @@ current_user() ...@@ -22,7 +22,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_noname"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_noname";
connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set ...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
revoke select on test.* from 'root'@'192.0.2.4'; revoke select on test.* from 'root'@'192.0.2.4';
drop user 'root'@'192.0.2.4'; drop user 'root'@'192.0.2.4';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_noname"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_noname";
ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -24,7 +24,7 @@ current_user() ...@@ -24,7 +24,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4";
ERROR 28000: Access denied for user 'user_without'@'santa.claus.ipv4.example.com' (using password: YES) ERROR 28000: Access denied for user 'user_without'@'santa.claus.ipv4.example.com' (using password: YES)
connection default; connection default;
...@@ -208,4 +208,4 @@ FIRST_ERROR_SEEN set ...@@ -208,4 +208,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
drop user 'user_with'@'santa.claus.ipv4.example.com'; drop user 'user_with'@'santa.claus.ipv4.example.com';
drop user 'user_without'@'santa.claus.ipv4.example.com'; drop user 'user_without'@'santa.claus.ipv4.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -28,7 +28,7 @@ current_user() ...@@ -28,7 +28,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4";
ERROR 28000: Access denied for user 'user_ssl'@'santa.claus.ipv4.example.com' (using password: NO) ERROR 28000: Access denied for user 'user_ssl'@'santa.claus.ipv4.example.com' (using password: NO)
connection default; connection default;
...@@ -152,4 +152,4 @@ FIRST_ERROR_SEEN set ...@@ -152,4 +152,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
drop user 'user_ssl'@'santa.claus.ipv4.example.com'; drop user 'user_ssl'@'santa.claus.ipv4.example.com';
drop user 'user_ssl_x509'@'santa.claus.ipv4.example.com'; drop user 'user_ssl_x509'@'santa.claus.ipv4.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -22,7 +22,7 @@ current_user() ...@@ -22,7 +22,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_again";
connect con2,"::1",root,,test,$MASTER_MYPORT,; connect con2,"::1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set ...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
revoke select on test.* from 'root'@'2001:db8::6:6'; revoke select on test.* from 'root'@'2001:db8::6:6';
drop user 'root'@'2001:db8::6:6'; drop user 'root'@'2001:db8::6:6';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_again";
ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -22,7 +22,7 @@ current_user() ...@@ -22,7 +22,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_bad_ipv6"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_bad_ipv6";
connect con2,"::1",root,,test,$MASTER_MYPORT,; connect con2,"::1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set ...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
revoke select on test.* from 'root'@'2001:db8::6:6'; revoke select on test.* from 'root'@'2001:db8::6:6';
drop user 'root'@'2001:db8::6:6'; drop user 'root'@'2001:db8::6:6';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_bad_ipv6"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_bad_ipv6";
ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -22,7 +22,7 @@ current_user() ...@@ -22,7 +22,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6";
connect con2,"::1",root,,test,$MASTER_MYPORT,; connect con2,"::1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN null ...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN null
LAST_ERROR_SEEN null LAST_ERROR_SEEN null
revoke select on test.* from 'root'@'santa.claus.ipv6.example.com'; revoke select on test.* from 'root'@'santa.claus.ipv6.example.com';
drop user 'root'@'santa.claus.ipv6.example.com'; drop user 'root'@'santa.claus.ipv6.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -19,7 +19,7 @@ current_user() ...@@ -19,7 +19,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6";
ERROR HY000: Host 'santa.claus.ipv6.example.com' is not allowed to connect to this MariaDB server ERROR HY000: Host 'santa.claus.ipv6.example.com' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -81,4 +81,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -81,4 +81,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -24,7 +24,7 @@ current_user() ...@@ -24,7 +24,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_noname"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_noname";
connect con2,"::1",root,,test,$MASTER_MYPORT,; connect con2,"::1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -104,4 +104,4 @@ revoke select on test.* from 'root'@'santa.claus.ipv6.example.com'; ...@@ -104,4 +104,4 @@ revoke select on test.* from 'root'@'santa.claus.ipv6.example.com';
revoke select on test.* from 'root'@'2001:db8::6:6'; revoke select on test.* from 'root'@'2001:db8::6:6';
drop user 'root'@'santa.claus.ipv6.example.com'; drop user 'root'@'santa.claus.ipv6.example.com';
drop user 'root'@'2001:db8::6:6'; drop user 'root'@'2001:db8::6:6';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_noname"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_noname";
ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -24,7 +24,7 @@ current_user() ...@@ -24,7 +24,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6";
uninstall plugin test_plugin_server; uninstall plugin test_plugin_server;
ERROR HY000: Plugin 'test_plugin_server' is not loaded ERROR HY000: Plugin 'test_plugin_server' is not loaded
...@@ -195,5 +195,5 @@ REVOKE PROXY ON 'plug_dest'@'santa.claus.ipv6.example.com' ...@@ -195,5 +195,5 @@ REVOKE PROXY ON 'plug_dest'@'santa.claus.ipv6.example.com'
FROM 'plug'@'santa.claus.ipv6.example.com'; FROM 'plug'@'santa.claus.ipv6.example.com';
DROP USER 'plug'@'santa.claus.ipv6.example.com'; DROP USER 'plug'@'santa.claus.ipv6.example.com';
DROP USER 'plug_dest'@'santa.claus.ipv6.example.com'; DROP USER 'plug_dest'@'santa.claus.ipv6.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
delete from mysql.plugin where name='test_plugin_server'; delete from mysql.plugin where name='test_plugin_server';
...@@ -25,7 +25,7 @@ current_user() ...@@ -25,7 +25,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6,native_password_bad_reply"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6,native_password_bad_reply";
ERROR 08S01: Bad handshake ERROR 08S01: Bad handshake
connection default; connection default;
...@@ -428,4 +428,4 @@ drop user 'root'@'santa.claus.ipv6.example.com'; ...@@ -428,4 +428,4 @@ drop user 'root'@'santa.claus.ipv6.example.com';
revoke select on test.* from 'quota'@'santa.claus.ipv6.example.com'; revoke select on test.* from 'quota'@'santa.claus.ipv6.example.com';
drop user 'quota'@'santa.claus.ipv6.example.com'; drop user 'quota'@'santa.claus.ipv6.example.com';
set global max_connect_errors = @saved_max_connect_errors; set global max_connect_errors = @saved_max_connect_errors;
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -25,7 +25,7 @@ current_user() ...@@ -25,7 +25,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6";
connect con2a,"::1",quota,,test,$MASTER_MYPORT,; connect con2a,"::1",quota,,test,$MASTER_MYPORT,;
select "Con2a is alive"; select "Con2a is alive";
...@@ -703,4 +703,4 @@ disconnect tmp_con7; ...@@ -703,4 +703,4 @@ disconnect tmp_con7;
set global max_connections = @saved_max_connections; set global max_connections = @saved_max_connections;
set global max_user_connections = @saved_max_user_connections; set global max_user_connections = @saved_max_user_connections;
drop user 'quota'@'santa.claus.ipv6.example.com'; drop user 'quota'@'santa.claus.ipv6.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -24,7 +24,7 @@ current_user() ...@@ -24,7 +24,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_again";
connect con2,"::1",root,,test,$MASTER_MYPORT,; connect con2,"::1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -179,4 +179,4 @@ revoke select on test.* from 'root'@'2001:db8::6:6'; ...@@ -179,4 +179,4 @@ revoke select on test.* from 'root'@'2001:db8::6:6';
revoke select on test.* from 'root'@'santa.claus.ipv6.example.com'; revoke select on test.* from 'root'@'santa.claus.ipv6.example.com';
drop user 'root'@'2001:db8::6:6'; drop user 'root'@'2001:db8::6:6';
drop user 'root'@'santa.claus.ipv6.example.com'; drop user 'root'@'santa.claus.ipv6.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_again";
ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -143,4 +143,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -143,4 +143,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -22,7 +22,7 @@ current_user() ...@@ -22,7 +22,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_noname"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_noname";
connect con2,"::1",root,,test,$MASTER_MYPORT,; connect con2,"::1",root,,test,$MASTER_MYPORT,;
select "Con2 is alive"; select "Con2 is alive";
...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set ...@@ -100,4 +100,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
revoke select on test.* from 'root'@'2001:db8::6:6'; revoke select on test.* from 'root'@'2001:db8::6:6';
drop user 'root'@'2001:db8::6:6'; drop user 'root'@'2001:db8::6:6';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -20,7 +20,7 @@ current_user() ...@@ -20,7 +20,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_noname"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_noname";
ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server
connection default; connection default;
...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0 ...@@ -82,4 +82,4 @@ COUNT_LOCAL_ERRORS 0
COUNT_UNKNOWN_ERRORS 0 COUNT_UNKNOWN_ERRORS 0
FIRST_ERROR_SEEN set FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -24,7 +24,7 @@ current_user() ...@@ -24,7 +24,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6";
ERROR 28000: Access denied for user 'user_without'@'santa.claus.ipv6.example.com' (using password: YES) ERROR 28000: Access denied for user 'user_without'@'santa.claus.ipv6.example.com' (using password: YES)
connection default; connection default;
...@@ -208,4 +208,4 @@ FIRST_ERROR_SEEN set ...@@ -208,4 +208,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
drop user 'user_with'@'santa.claus.ipv6.example.com'; drop user 'user_with'@'santa.claus.ipv6.example.com';
drop user 'user_without'@'santa.claus.ipv6.example.com'; drop user 'user_without'@'santa.claus.ipv6.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -28,7 +28,7 @@ current_user() ...@@ -28,7 +28,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6";
ERROR 28000: Access denied for user 'user_ssl'@'santa.claus.ipv6.example.com' (using password: NO) ERROR 28000: Access denied for user 'user_ssl'@'santa.claus.ipv6.example.com' (using password: NO)
connection default; connection default;
...@@ -152,4 +152,4 @@ FIRST_ERROR_SEEN set ...@@ -152,4 +152,4 @@ FIRST_ERROR_SEEN set
LAST_ERROR_SEEN set LAST_ERROR_SEEN set
drop user 'user_ssl'@'santa.claus.ipv6.example.com'; drop user 'user_ssl'@'santa.claus.ipv6.example.com';
drop user 'user_ssl_x509'@'santa.claus.ipv6.example.com'; drop user 'user_ssl_x509'@'santa.claus.ipv6.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -27,7 +27,7 @@ current_user() ...@@ -27,7 +27,7 @@ current_user()
root@localhost root@localhost
disconnect con1; disconnect con1;
connection default; connection default;
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_error"; set global debug_dbug= "+d,vio_peer_addr_error";
ERROR HY000: Can't get hostname for your address ERROR HY000: Can't get hostname for your address
connection default; connection default;
...@@ -51,7 +51,7 @@ Connection_errors_peer_address 2 ...@@ -51,7 +51,7 @@ Connection_errors_peer_address 2
Connection_errors_select 0 Connection_errors_select 0
Connection_errors_tcpwrap 0 Connection_errors_tcpwrap 0
"Dumping performance_schema.host_cache" "Dumping performance_schema.host_cache"
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
flush status; flush status;
show global status like "connection_errors_%"; show global status like "connection_errors_%";
Variable_name Value Variable_name Value
......
...@@ -27,7 +27,7 @@ select current_user(); ...@@ -27,7 +27,7 @@ select current_user();
disconnect con1; disconnect con1;
--connection default --connection default
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again";
connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,); connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,);
...@@ -49,5 +49,5 @@ disconnect con3; ...@@ -49,5 +49,5 @@ disconnect con3;
revoke select on test.* from 'root'@'192.0.2.4'; revoke select on test.* from 'root'@'192.0.2.4';
drop user 'root'@'192.0.2.4'; drop user 'root'@'192.0.2.4';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -25,7 +25,7 @@ select current_user(); ...@@ -25,7 +25,7 @@ select current_user();
disconnect con1; disconnect con1;
--connection default --connection default
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again";
--disable_query_log --disable_query_log
...@@ -44,5 +44,5 @@ connect (con3,"127.0.0.1",root,,test,$MASTER_MYPORT,); ...@@ -44,5 +44,5 @@ connect (con3,"127.0.0.1",root,,test,$MASTER_MYPORT,);
--connection default --connection default
--source ../include/hostcache_dump.inc --source ../include/hostcache_dump.inc
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -30,7 +30,7 @@ select current_user(); ...@@ -30,7 +30,7 @@ select current_user();
disconnect con1; disconnect con1;
--connection default --connection default
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4";
connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,); connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,);
...@@ -52,5 +52,5 @@ disconnect con3; ...@@ -52,5 +52,5 @@ disconnect con3;
revoke select on test.* from 'root'@'192.0.2.4'; revoke select on test.* from 'root'@'192.0.2.4';
drop user 'root'@'192.0.2.4'; drop user 'root'@'192.0.2.4';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -27,7 +27,7 @@ select current_user(); ...@@ -27,7 +27,7 @@ select current_user();
disconnect con1; disconnect con1;
--connection default --connection default
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4";
--disable_query_log --disable_query_log
...@@ -46,5 +46,5 @@ connect (con3,"127.0.0.1",root,,test,$MASTER_MYPORT,); ...@@ -46,5 +46,5 @@ connect (con3,"127.0.0.1",root,,test,$MASTER_MYPORT,);
--connection default --connection default
--source ../include/hostcache_dump.inc --source ../include/hostcache_dump.inc
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
...@@ -28,7 +28,7 @@ select current_user(); ...@@ -28,7 +28,7 @@ select current_user();
disconnect con1; disconnect con1;
--connection default --connection default
set @saved_dbug = @@global.debug_dbug; SET @saved_dbug = @@GLOBAL.debug_dbug;
set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4";
connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,); connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,);
...@@ -50,5 +50,5 @@ disconnect con3; ...@@ -50,5 +50,5 @@ disconnect con3;
revoke select on test.* from 'root'@'santa.claus.ipv4.example.com'; revoke select on test.* from 'root'@'santa.claus.ipv4.example.com';
drop user 'root'@'santa.claus.ipv4.example.com'; drop user 'root'@'santa.claus.ipv4.example.com';
set @@global.debug_dbug = @saved_dbug; SET @@GLOBAL.debug_dbug = @saved_dbug;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment