What is the maximum length of data I can put in a BLOB column in MySQL?

Newy picture Newy · Apr 25, 2011 · Viewed 180.5k times · Source

What is the maximum length of data I can put in a BLOB column in MySQL?

Answer

WhiteFang34 picture WhiteFang34 · Apr 25, 2011

A BLOB can be 65535 bytes (64 KB) maximum.

If you need more consider using:

  • a MEDIUMBLOB for 16777215 bytes (16 MB)

  • a LONGBLOB for 4294967295 bytes (4 GB).

See Storage Requirements for String Types for more info.