Skip to content

Instantly share code, notes, and snippets.

@agungdh
Created October 22, 2019 09:53
Show Gist options
  • Select an option

  • Save agungdh/f71713d64cd047501a76f76c489e1b2f to your computer and use it in GitHub Desktop.

Select an option

Save agungdh/f71713d64cd047501a76f76c489e1b2f to your computer and use it in GitHub Desktop.
Cek ukuran database (KB)
SELECT
ROUND(SUM(data_length + index_length) / 1024) AS 'size'
FROM
information_schema.tables
WHERE
table_schema = 'test'
GROUP BY
table_schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment