数据库innodb下存储太多保存失败
数据库报错信息:Syntax error or access violation: 1118 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_.....
1、修改innodb_file_per_table和innodb_file_format
①登录数据库直接修改参数:
set global innodb_file_per_table=1
set global innodb_file_format=Barracuda
②修改配置文档my.cnf
[mysqld]
innodb_file_per_table = 1
innodb_file_format = Barracuda2、将表ROW_FORMAT修改为DYNAMIC或COMPRESSED
ALTER TABLE table_name ROW_FORMAT=COMPRESSEDPS:不知道其他问题有没有,my.cnf里还加了(可忽略):
innodb_log_file_size = 256M
innodb_log_buffer_size = 400M