Answer the question
In order to leave comments, you need to log in
What to do with MySQL error #1117 (too many columns)?
Good day. The table now has 950 columns.
You need to add 200 more.
But you get MySQL error #1117 (too many columns).
Understand. Maybe the architecture is not optimal, but I'll work on it later.
What can be done so far?
As far as I understand, up to 4000 thousand columns can still be increased somehow.
Thank you.
Answer the question
In order to leave comments, you need to log in
dev.mysql.com/doc/refman/5.1/en/column-count-limit.html
InnoDB has a maximum of 1000 columns and a row size of no more than 64kb of data in total, it says so there (not counting blob fields)
Calculate using the formula
row length = 1
+ (sum of column lengths)
+ (number of NULL columns + delete_flag + 7)/8
+ (number of variable-length columns)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question