Mysql database size and limitation of data insertion

Hi everybody,

I started to write my own Web hosting Panel and have some questions to you.

How do I find the size of database or a table in mysql? Also, how can I block inserting data to a database that has reached limit of the size?

I think I can do next. Check if the limit is reached and then delete insert permmisssion on specific database or table if needed. But I'm not sure if this is the best way to do that.

Thank you for replies.

Alex

 

 

 

 

Top