MySQL Forums
Forum List  »  Newbie

Size of a MySQL Database
Posted by: Jonathan Pokou
Date: December 07, 2016 11:20AM

Hi MySQL users,

Could you please tell me how to get the total size of all the MySQL databases on one server. From my understanding, the following query allows me to get the result that i am looking for:

SELECT table_schema "Data Base Name", sum( data_length + index_length) / 1024 / 1024 "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema ;

But the thing is on MySQL 4.1 the database information_schema doesn't exist so the previous query doesn't work... Is there a way to get the total database size on MySQL 4.1?

Thank you.

Options: ReplyQuote


Subject
Written By
Posted
Size of a MySQL Database
December 07, 2016 11:20AM
December 07, 2016 12:04PM
December 07, 2016 12:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.