Mysql: How to get size of mysql database?

Mysql 4 ก.ค. 2017

Run this query and you’ll probably get what you’re looking for:

SELECT table_schema                                        "DB Name", 
   Round(Sum(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" 
FROM   information_schema.tables 
GROUP  BY table_schema; 

แท็ก

Onyx

Just a middle-aged programmer, Can do many things but not the most.