问题:
ERROR 1197 (HY000) at line 2: Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again
表占用空间626MB[root@vm-m4-new ~]# mysql -uroot -p123456
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 270903
Server version: 10.1.13-MariaDB Source distribution
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show variables like '%max_binlog_cache_size%';
+-----------------------+-----------+
| Variable_name | Value |
+-----------------------+-----------+
| max_binlog_cache_size | 268435456 |
+-----------------------+-----------+
1 row in set (0.09 sec)
解决:
MariaDB [(none)]> show variables like '%max_binlog_cache_size%';
+-----------------------+------------+
| Variable_name | Value |
+-----------------------+------------+
| max_binlog_cache_size | 2365587456 |
+-----------------------+------------+
1 row in set (0.01 sec)