Calculating total data size of BLOB column in a table Calculating total data size of BLOB column in a table mysql mysql

Calculating total data size of BLOB column in a table


You can use the MySQL function OCTET_LENGTH(your_column_name). See here for more details.


select sum(length(blob_column)) as total_size from your_table


select sum(length(blob_column_name)) from desired_tablename;