1
drop table if exists t1,t2;
2
create table t1(n int);
3
insert into t1 values (1);
5
update low_priority t1 set n = 4;
11
create table t1(n int);
12
insert into t1 values (1);
14
update low_priority t1 set n = 4;
20
create table t1 (a int, b int);
21
create table t2 (c int, d int);
22
insert into t1 values(1,1);
23
insert into t1 values(2,2);
24
insert into t2 values(1,2);
26
update t1,t2 set c=a where b=d;
33
create table t1 (a int);
34
create table t2 (a int);
35
lock table t1 write, t2 write;
36
insert t1 select * from t2;
38
ERROR 42S02: Table 'test.t2' doesn't exist
40
create table t1 (a int);
41
create table t2 (a int);
42
lock table t1 write, t2 write, t1 as t1_2 write, t2 as t2_2 write;
43
insert t1 select * from t2;
45
ERROR 42S02: Table 'test.t2' doesn't exist
48
create table t1(a int);
51
Field Type Null Key Default Extra
56
LOCK TABLES columns_priv WRITE, db WRITE, host WRITE, user WRITE;
59
SELECT user.Select_priv FROM user, db WHERE user.user = db.user LIMIT 1;
60
OPTIMIZE TABLES columns_priv, db, host, user;
61
Table Op Msg_type Msg_text
62
mysql.columns_priv optimize status OK
63
mysql.db optimize status OK
64
mysql.host optimize status OK
65
mysql.user optimize status OK
71
CREATE TABLE t1 (c1 int);
73
FLUSH TABLES WITH READ LOCK;
74
CREATE TABLE t2 (c1 int);
78
CREATE TABLE t1 (c1 int);
80
FLUSH TABLES WITH READ LOCK;
81
CREATE TABLE t2 AS SELECT * FROM t1;
82
ERROR HY000: Table 't2' was not locked with LOCK TABLES
86
CREATE DATABASE mysqltest_1;
87
FLUSH TABLES WITH READ LOCK;
88
DROP DATABASE mysqltest_1;
89
DROP DATABASE mysqltest_1;
90
ERROR HY000: Can't execute the query because you have a conflicting read lock
92
DROP DATABASE mysqltest_1;
93
ERROR HY000: Can't drop database 'mysqltest_1'; database doesn't exist
94
create table t1 (f1 int(12) unsigned not null auto_increment, primary key(f1)) engine=innodb;
96
alter table t1 auto_increment=0;
97
alter table t1 auto_increment=0;
101
create table t1 (i int);
103
update t1 set i= 10;;
107
ERROR 70100: Query execution was interrupted
110
drop table if exists t1;
111
create table t1 (a int) ENGINE=MEMORY;
114
ERROR HY000: Table storage engine for 't1' doesn't have this option
117
drop table if exists t1;
118
create table t1 (i int);
120
lock tables t1 write;
122
flush tables with read lock;;
124
alter table t1 add column j int;
126
insert into t1 values (1,2);;
137
drop table if exists t1;
138
create table t1 (i int);
140
lock tables t1 write;
142
flush tables with read lock;;
147
drop table if exists t1,t2;
148
create table t1 (a int);
151
insert into t1 values(1);
154
select @tlwa < @tlwb;
158
drop table if exists t1;
159
create table t1 (i int);
161
lock tables t1 write;
163
flush tables with read lock;;