Skip to content
tech.tutulutu.ee
Simple Blog about Tech – written for myself. Use with caution.
  • Home
  • Links
Uncategorized

Show sql database size

Posted July 27, 2016
SELECT table_schema "Data Base Name",
    sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB",
    sum( data_free )/ 1024 / 1024 "Free Space in MB"
FROM information_schema.TABLES
GROUP BY table_schema ; 

Thanks to: http://stackoverflow.com/questions/14714750/how-to-get-true-size-of-mysql-database

Post navigation

Older post
Install node and npm without having to sudo
Newer post
Unpack and import mysql database from *.sql.gz file on command line

Recent Posts

  • Compress or extract directory using tar command
  • Overwrite disk with zeros
  • Protect access to certain file with htaccess
  • Apache set Content-Security-Policy
  • Find out what runs on port 80

Categories

  • Angularjs
  • apache
  • Atom
  • aws
  • bootstrap
  • command-line
  • css
  • docker
  • firefox
  • Git
  • gmail
  • https
  • Java
  • jQuery
  • LAN
  • laravel
  • linux
  • music
  • MySQL
  • network
  • nginx
  • nodejs
  • npm
  • php
  • phpunit
  • printers
  • Python
  • Sailsjs
  • sql
  • ssh
  • SSL and HTTPS
  • thunderbird
  • Uncategorized
  • vim
  • web
  • woocommerce
  • wordpress

Tags

add user angularjs apache atom aws bootstrap browser command line composer cron css docker dpkg find find file firefox gedit htaccess html htpasswd https install soft ip java laravel linux music mysql nautilus nginx npm php phpunit port proxy rsync s3cmd scp server ssh thunderbird ubuntu visudo woocommerce wordpress
© 2026 tech.tutulutu.ee
Powered by WordPress | Theme: Graphy by Themegraphy