7
set global init_connect="set @a=2;set @b=3";
11
set GLOBAL init_connect=DEFAULT;
15
set global init_connect="drop table if exists t1; create table t1(a char(10));\
16
insert into t1 values ('\0');insert into t1 values('abc')";
17
select hex(a) from t1;
21
set GLOBAL init_connect="adsfsdfsdfs";
23
Got one of the listed errors
26
create table t1 (x int);
27
insert into t1 values (3), (5), (7);
28
create table t2 (y int);
29
create user mysqltest1@localhost;
30
grant all privileges on test.* to mysqltest1@localhost;
31
set global init_connect="create procedure p1() select * from t1";
38
set global init_connect="create procedure p1(x int)\
40
select count(*) from t1;\
54
set global init_connect="call p1(4711)";
58
set global init_connect="drop procedure if exists p1";
60
ERROR 42000: PROCEDURE test.p1 does not exist
61
create procedure p1(out sum int)
63
declare n int default 0;
64
declare c cursor for select * from t1;
65
declare exit handler for not found
81
set global init_connect="call p1(@sum)";
86
create procedure p1(tbl char(10), v int)
88
set @s = concat('insert into ', tbl, ' values (?)');
90
prepare stmt1 from @s;
91
execute stmt1 using @v;
92
deallocate prepare stmt1;
94
set global init_connect="call p1('t1', 11)";
102
create function f1() returns int
105
select count(*) into n from t1;
108
set global init_connect="set @x = f1()";
112
set global init_connect="create view v1 as select f1()";
116
set global init_connect="drop view v1";
118
ERROR 42S02: Table 'test.v1' doesn't exist
123
insert into t1 values (new.y);
124
set global init_connect="insert into t2 values (13), (17), (19)";
135
set global init_connect="set @a='a\\0c'";
136
revoke all privileges, grant option from mysqltest1@localhost;
137
drop user mysqltest1@localhost;