philihpAboutPGPLightning

Maximum sizes of MySQL Blob Fields

Philihp Busby,1 min read

This is not immediately obvious from the documentation (, which as it seems is often the case, was written for people who just like to read documentation, and not for people who are looking for answers).

The maximum sizes of the MySQL Blob fields are as follows:

TypeWhat They Say It NeedsThat Means You Get
TINYBLOBL+1 bytes, where L < 28256 bytes
BLOBL+2 bytes, where L < 21665 kilobytes
MEDIUMBLOBL+3 bytes, where L < 22416 megabytes
LONGBLOBL+4 bytes, where L < 2324 gigabytes

There. Now it’s on the Internet and people can find the answer to this question. The world is a better place.

GitHub · Bluesky · LinkedIn · Instagram · KeybaseRSS

Built from 8f0906ac CC BY 4.0 — with love from San Francisco.