MySQL – How to Check InnoDB Shared Table Space Usage

innodbmaintenancemonitoringMySQL

How can I find out how much data is in the innodb shared table space.

I have a massive shared idb file but I suspect that it contains only about 350 Gigs of data. I need to know how full it is so I can prevent it from expanding as I have very little disk space left. Any ideas ?

Best Answer

It's in ibdata1? How much free space do you currently have? What is the output of

 SHOW TABLE STATUS;

And

 SHOW CREATE TABLE  -- for the largest table

Is this 'your' machine? Or a Cloud server? Do you have access to another machine with a big disk?

Knowing how "full it is" won't necessarily help you avoid running out of disk space.

With answers to the above questions, we may be able to plot a path that does not end in disaster.