Skip to content

Instantly share code, notes, and snippets.

@nawawi
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save nawawi/41138bd44cab56d5a581 to your computer and use it in GitHub Desktop.

Select an option

Save nawawi/41138bd44cab56d5a581 to your computer and use it in GitHub Desktop.
sql syntax calculate size satu database
-- sql syntax calculate size satu database dalam byte
-- replace namadabase kepada real database name
SELECT sum( data_length + index_length ) as size FROM information_schema.TABLES where table_schema = 'namadatabase' GROUP BY table_schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment