| 1 |
SET AUTOCOMMIT=0; |
| 2 |
CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, b TEXT, PRIMARY KEY(a)) ENGINE=InnoDB; |
| 3 |
SELECT COUNT(*) FROM t1; |
| 4 |
COUNT(*) |
| 5 |
1000 |
| 6 |
SET GLOBAL binlog_cache_size=4096; |
| 7 |
SET GLOBAL max_binlog_cache_size=4096; |
| 8 |
START TRANSACTION; |
| 9 |
CREATE TABLE t2 SELECT * FROM t1; |
| 10 |
ERROR HY000: Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again |
| 11 |
COMMIT; |
| 12 |
SHOW TABLES LIKE 't%'; |
| 13 |
Tables_in_test (t%) |
| 14 |
t1 |
| 15 |
DROP TABLE t1; |