MariaDB

From Sasara
Revision as of 08:09, 17 May 2026 by Rubenerd (talk | contribs) (Created page with "'''MariaDB''' database notes. ==Size of table== By [https://stackoverflow.com/questions/9620198/how-can-i-get-the-sizes-of-the-tables-of-a-mysql-database ChapMic]: SELECT table_name AS `Table`, round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` FROM information_schema.TABLES WHERE table_schema = "$DB_NAME" AND table_name = "$TABLE_NAME"; Category:Tech")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

MariaDB database notes.

Size of table

By ChapMic:

SELECT table_name AS `Table`, 
    round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` 
FROM information_schema.TABLES 
WHERE table_schema = "$DB_NAME"
    AND table_name = "$TABLE_NAME";