今天备份表数据遇到一个错误 Error CODE: 1197 Multi-statement TRANSACTION required more THAN 'max_binlog_cache_size' bytes of STORAGE

今天备份表数据遇到一个错误  Error CODE: 1197 Multi-statement TRANSACTION required more THAN ‘max_binlog_cache_size‘ bytes of STORAGE

版本:mysql5.6.35

系统:centos6.5

下面是备份语句

CREATE TABLE FONTANA_BETSBAK AS SELECT * FROM FONTANA_BETS; 
Error CODE: 1197
Multi-statement TRANSACTION required more THAN ‘max_binlog_cache_size‘ bytes of STORAGE; increase this mysqld variable AND try again

上网搜了一下,发现是max_binlog_cache_size设置得不够大的原因

对Innodb引擎
由于innodb是事务型的,所以会把load文件的整个操作当作一个事务来处理,
中途中断load操作,会导致回滚。
与此相关的一些参数:
max_binlog_cache_size----能够使用的最大cache内存大小。
当执行多语句事务时,max_binlog_cache_size如果不够大,
系统可能会报出“Multi-statement
transaction required more than ‘max_binlog_cache_size‘ bytes of storage”的错误。
 备注:以load data 来说,如果load的文件大小为512M,在执行load 的过程中,
所有产生的binlog会先写入binlog_cache_size,直到load data 的操作结束后,
最后,再由binlog_cache_size 写入二进制日志,如mysql-bin.0000008等。
所以此参数的大小必须大于所要load 的文件的大小,或者当前所要进行的事务操作的大小。

改大max_binlog_cache_size 问题解决

SET GLOBAL max_binlog_cache_size =20971520

今天备份表数据遇到一个错误 Error CODE: 1197 Multi-statement TRANSACTION required more THAN 'max_binlog_cache_size' bytes of STORAGE

时间: 2024-12-28 13:53:11

今天备份表数据遇到一个错误 Error CODE: 1197 Multi-statement TRANSACTION required more THAN 'max_binlog_cache_size' bytes of STORAGE的相关文章

MySQL Workbench update语句错误Error Code: 1175.

rom:http://www.tuicool.com/articles/NJ3QRz MySQL update error: Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queri

Mysql查询大表出现的一个错误

第一次测试执行下面的语句时发生如下错误:bigdata里面有100万条数据 mysql> select count(*) from (select distinct(id) from bigdata) as total; ERROR 1317 (70100): Query execution was interrupted 等了一会再执行一下就成功了 mysql> select count(*) from (select distinct(id) from bigdata) as total;

MySQL Error Code文档手册---摘自MySQL官方网站

This chapter lists the errors that may appear when you call MySQL from any host language. The first list displays server error messages. The second list displays client program messages. Server error information comes from the following files: The Er

MySQL之XtraBackup实现完全备份、增量备份、数据还原

XtraBackup:是一个开源的免费的备份工具,支持热备份,对Innodb和MyISam存储引擎都支持备份,Innodb为热备.MyISam为温备份.且支持将备份结果进行压缩存放.支持部分备份(如只备份某个库或者某个库中的某个表).支持即时点数据还原.支持完全备份.支持增量备份.支持并行备份.流式备份.并行备份压缩.支持将单个表数据从一个数据库中导出然后导入另一个数据库中.支持将表恢复到一个不同的数据库server上 mylvmbackup:是一款可以实现自动化对LVM逻辑卷上的数据实现几乎热

Oracle中复制表结构和表数据

Oracle中复制表结构和表数据 1. 复制表结构及其数据(目标表不存在): create table table_name_new as select * from table_name_old; 2. 只复制表结构(目标表不存在,加入一个永远不可能成立的条件.): create table table_name_new as select * from table_name_old where 1=2; 3. 只复制表数据(目标表已经存在): 如果两个表结构一样: insert into t

CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.2'

在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0'  ,就是说代码签名证书不对劲. 解决方案: 1.选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer 2.重新下载你的证书,或

CodeSign error: code signing is required for product type Application in SDK iOS XXX的解决办法

转自:http://www.tuicool.com/articles/jYRNbm 在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0'  ,就是说代码签名证书不对劲. 解决方案, 1.选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any i

CodeSign error: code signing is required for product type Application in SDK iOS

在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0'  ,就是说代码签名证书不对劲.  解决方案,  1.选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer  2.重新下载你的证

iOS CodeSign error: code signing is required for product type Application in SDK iOS

在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0'  ,就是说代码签名证书不对劲. 解决方案, 1.选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer 2.重新下载你的证书,或