简体   繁体   English

保存base64数据-行大小太大问题

[英]saving base64 data - row size too large issue

I have 22 database fields of type longtext . 我有22个longtext类型的数据库字段。 If I try saving 12 of the fields with the following data I get the following error: 如果我尝试使用以下数据保存12个字段,则会出现以下错误:

#1118 - Row size too large. The maximum row size for the used table type, not     
counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs 

It saves fine if I only save 11 fields. 如果我只保存11个字段,它可以节省罚款。 Here's the data: 数据如下:

BYOkQoFxB5+S8VH8svilSI/hQCUDlh1wGhyHacxjNpShUKlGJJ5HZ1DQTKGexBaP65zeJksfOnvBloCSbVmNgYxQhaQHn7sJlKjwtC00X/me2K8Vs4I9cL9SZx58Q2iXXQBbJYaAhn0LaEJMUN0P7VWd0/MiKgXsJt0UiXBf7Rlo6JIooBlaf59zA+II1o3MJKmzyH4q7C1qm2bC0LIT79ZCWDDSdqQaKZ1k1gPMu+yDYQPjrNiQUW29K/AdJ/XpPHT50jaJUjoMv9fL2TK0bUMO0VGe+0Cf4j0BE3QHlFnHqdgnLCTWk8NVo5U4Y5XTObsZtWwd1wHFZNIatuvg0cQk6WHojx3H9HavxKs9JJWYp8eCywyLhjmF39jMoZRT4n8fSTGDGif2q3VJE7DQrmQTjyQkSl9yUWvcTTUHAyNRYKnthVbgbzOOhEvhOZPuD4h+dcGyiW/xk+Lvu2XqkMDBIBuLcKymrdhefi4DElpuwyKFH7DNt6Y3fllPN/0XuSF0YXPqnBDLUcZsMqdzWPZX4RoVza/0Do+mHejYUSYnhsFWtPUHlTnU6fojBqw0icoKqhwjcIVpZmATwgYwXclsSwqEBWm9q9DMNzXG73bq6bs29BKq3E9S/fxo9Bz3mThNaj33fhyD4mj8indAIQeLVWvW3dq4T8+0lao6Ll0=

How can I fix the issue? 我该如何解决该问题? How can I increase the bytes of the row size so it is more than 8126? 如何增加行大小的字节,使其大于8126?

Columns of type Varchar's, text, and blob arent included in the innodb row size limit.. so if you have a lot of columns that aren't you can get that error. innodb行大小限制中包括Varchar,text和blob arent类型的列。因此,如果您有很多列,那么您将得到该错误。

I had a load of char(1)'s that I changed to varchar and it fixed the problem nicely 我有一个char(1)的负载,我改成了varchar,它很好地解决了这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM