• query in database:
    SELECT table_schema as "database_name", 
    Round(Sum(data_length+index_length)/1024/1024,1) as "database_size_MB",  
    Round(Sum(data_free)/1024/1024,1) as "Free_space_MB"
    FROM information_schema.tables GROUP BY table_schema;
  • linux command:
    sudo du -h -d 1 /var/lib/mysql