Error Code: 1118. Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs 0.000 sec
USE testdb;
CREATE TABLE items (
id INT PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(3)
);
INSERT INTO items(title)
VALUES('ABCD');
1406 - Data too long for column 'title' at row 1
INSERT INTO items(title)
VALUES('AB ');
SELECT
id, title, length(title)
FROM
items;
+----+-------+---------------+
| id | title | length(title) |
+----+-------+---------------+
| 1 | AB | 3 |
+----+-------+---------------+
1 row in set
INSERT INTO items(title)
VALUES('ABC ');
row(s) affected, 1 warning(s): 1265 Data truncated for column 'title' at row 1
SELECT
title, LENGTH(title)
FROM
items;
+-------+---------------+
| title | LENGTH(title) |
+-------+---------------+
| AB | 3 |
| ABC | 3 |
+-------+---------------+
2 rows in set