Error message

User warning: The following module is missing from the file system: imagcache_actions. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1143 of /var/www/vhosts/pixelthis.gr/httpdocs/includes/bootstrap.inc).

Find your mysql / mariadb largest tables

May
2015
19

Finding largest tables on MySQL instance is no brainier in MySQL 5.0+ through terminal:

SELECT CONCAT(table_schema, '.', table_name),
       CONCAT(ROUND(table_rows / 1000000, 2), 'M')                                    rows,
       CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G')                    DATA,
       CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G')                   idx,
       CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size,
       ROUND(index_length / data_length, 2)                                           idxfrac
FROM   information_schema.TABLES
ORDER  BY data_length + index_length DESC
LIMIT  10;

original article: https://www.percona.com/blog/2008/02/04/finding-out-largest-tables-on-my...

Tags: 
Cats: 
this is an arrow pointing back to the top of the page