I was wondering if anyone could tell me the max length of the meta_value field for posts and user meta.

1 Answer 1


Both usermeta.meta_value and postmeta.meta_value are stored as LONGTEXT. Here's how the MySQL docs describe the size of a LONGTEXT data type:

"A TEXT column with a maximum length of 4,294,967,295 or 4GB (232 – 1) characters. The effective maximum length is less if the value contains multi-byte characters. The effective maximum length of LONGTEXT columns also depends on the configured maximum packet size in the client/server protocol and available memory."


  • 4
    It suffices to say that it would take a lot of text to max your limit. Feb 5, 2012 at 6:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.