How to check mysql db size

Can you please tell me how to check MySQL DB size 

Tags: MySQL
user image Author :   stewart
0

SELECT table_schema AS "Database",

ROUND(SUM(datalength + indexlength) / 1024 / 1024, 2) AS "Size (MB)"

FROM information_schema.TABLES

GROUP BY table_schema;

user image
gokulravichandran September 03, 2018
Add comment
0

SELECT table_schema AS "Database",

ROUND(SUM(datalength + indexlength) / 1024 / 1024, 2) AS "Size (MB)"

FROM information_schema.TABLES

GROUP BY table_schema;

user image
gokulravichandran September 03, 2018
Add comment