Bug #120953 Cannot create table - row size too large
| Submitted: | 18 Jul 16:47 | Modified: | 20 Jul 7:08 |
|---|---|---|---|
| Reporter: | Anthony Marston | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
| Version: | 9.7 | OS: | Windows (Windows 11) |
| Assigned to: | CPU Architecture: | Any |
[18 Jul 16:47]
Anthony Marston
[20 Jul 5:41]
Daniël van Eeden
Full error: ERROR 1118 (42000): Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline. Besides the solutions that the error suggest this also works: --innodb-page-size=32768 Normalizing could also help here. Why trying to create this table on MySQL 8.4.9, I get the same error. Could you share the `SHOW CREATE TABLE functional_unit\G` output for the existing table?
[20 Jul 5:49]
Daniël van Eeden
Might be related to: - Bug #120323 - Bug #120504
[20 Jul 7:04]
Shane Bester
actually, on current trunk we still need innodb_strict_mode=OFF...
-> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
ERROR 1118 (42000): Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
mysql> select @@innodb_strict_mode,version();
+----------------------+--------------+
| @@innodb_strict_mode | version() |
+----------------------+--------------+
| 1 | 26.10.0-asan |
+----------------------+--------------+
1 row in set (0.001 sec)
Setting OFF works:
-> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
Query OK, 0 rows affected, 1 warning (0.112 sec)
mysql> select @@innodb_strict_mode,version();
+----------------------+--------------+
| @@innodb_strict_mode | version() |
+----------------------+--------------+
| 0 | 26.10.0-asan |
+----------------------+--------------+
1 row in set (0.001 sec)
[20 Jul 7:08]
Shane Bester
Verifying this so dev could take a look why it fails in trunk which contains the fix for https://bugs.mysql.com/bug.php?id=120323
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.