2012-07-16 04:17:56 +02:00
|
|
|
SET lock_wait_timeout = 1;
|
|
|
|
CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
|
|
|
|
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
|
2016-03-25 17:51:22 +01:00
|
|
|
connect con1,localhost,root,,;
|
2012-07-16 04:17:56 +02:00
|
|
|
SET lock_wait_timeout = 1;
|
|
|
|
LOCK TABLES t1 READ LOCAL;
|
|
|
|
UNLOCK TABLES;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection default;
|
2012-07-16 04:17:56 +02:00
|
|
|
UNLOCK TABLES;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection con1;
|
2012-07-16 04:17:56 +02:00
|
|
|
LOCK TABLES t1 READ LOCAL;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection default;
|
2012-07-16 04:17:56 +02:00
|
|
|
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
|
|
|
|
UNLOCK TABLES;
|
2016-03-25 17:51:22 +01:00
|
|
|
connection con1;
|
2012-07-16 04:17:56 +02:00
|
|
|
UNLOCK TABLES;
|
2016-03-25 17:51:22 +01:00
|
|
|
disconnect con1;
|
|
|
|
connection default;
|
2012-07-16 04:17:56 +02:00
|
|
|
DROP TABLE t1;
|