MySQL - Maximum size of TINYTEXT, TEXT, MEDIUMTEXT, and LONGTEXT?
Here’s the difference in maximum storage size of each datatype:
Type | Maximum size |
---|---|
TINYTEXT | 255 (2 8−1) bytes |
TEXT | 65,535 (216−1) bytes = 64 KB |
MEDIUMTEXT | 16,777,215 (224−1) bytes = 16 MB |
LONGTEXT | 4,294,967,295 (232−1) bytes = 4 GB |
Need a good GUI Tool for MySQL? TablePlus is a modern, native tool with an elegant UI that allows you to simultaneously manage multiple databases such as MySQL, PostgreSQL, SQLite, Microsoft SQL Server and more.
Not on Mac? Download TablePlus for Windows.
On Linux? Download TablePlus for Linux
Need a quick edit on the go? Download TablePlus for iOS.