Posts

Showing posts from January, 2015

mysql : database and table's - memory and data informations

Here I mentioned some basic SQL query for getting data information in DB and Tables level. For getting all database size and remaining space available in MB Query: SELECT table_schema "Data Base Name",     ROUND(SUM( data_length + index_length ) / 1024 / 1024 ,2) "Data Base Size in MB",      ROUND(SUM( data_free )/ 1024 / 1024,2) "Free Space in MB" FROM information_schema.TABLES GROUP BY table_schema ; OUTPUT: Data Base Name                                      Data Base Size in MB              Free Space in MB   ------------------                         ----------------...