mysql 大文件数据恢复报错

大概1个多G的sql文件,作数据还原操做,出现了2个问题: 一、mysql server has gone awaymysql

二、mysql Row size too large (> 8126).sql

初步分析导入的时候有对文件的大小和导入时间作了限制 能够看一下这个地址 http://stackoverflow.com/questions/15585602/change-limit-for-mysql-row-size-too-large/vim

最终解决:code

一、too large 问题能够修改属性
set global max_allowed_packet=1024*1024*16;
二、
vim /etc/my.cnf
在[mysqld]中添加以下信息
wait_timeout=2880000
interactive_timeout = 2880000
innodb_large_prefix = True
innodb_file_format = Barracuda
innodb_file_per_table = True
innodb_log_file_size = 256M
相关文章
相关标签/搜索