2012-07-16 06:17:56 +04: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 20:51:22 +04:00
|
|
|
connect con1,localhost,root,,;
|
2012-07-16 06:17:56 +04:00
|
|
|
SET lock_wait_timeout = 1;
|
|
|
|
LOCK TABLES t1 READ LOCAL;
|
|
|
|
UNLOCK TABLES;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
2012-07-16 06:17:56 +04:00
|
|
|
UNLOCK TABLES;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2012-07-16 06:17:56 +04:00
|
|
|
LOCK TABLES t1 READ LOCAL;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
2012-07-16 06:17:56 +04:00
|
|
|
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
|
|
|
|
UNLOCK TABLES;
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2012-07-16 06:17:56 +04:00
|
|
|
UNLOCK TABLES;
|
2016-03-25 20:51:22 +04:00
|
|
|
disconnect con1;
|
|
|
|
connection default;
|
2012-07-16 06:17:56 +04:00
|
|
|
DROP TABLE t1;
|