GICT knowledge base
Size of MySQL Databases Shown as 0MB in cPanel
Published
Sometimes, when you log into cPanel, you’ll see non-empty MySQL databases showing 0MB as its size. Those databases actually contain tables and details, but the size is always shown as 0MB.
Steps to fix this issue from command line
1) Logon to server using SSH.
2) Reset the value of disk_usage_include_sqldbs from 0 to 1 in cPanel configuration file.
# vi /var/cpanel/cpanel.config
disk_usage_include_sqldbs=1
3) Run the script below to update the database cache
# /scripts/update_db_cache
Steps to fix the database size issue from WHM
1) Login to WHM.
2) Navigate to ‘Tweak Settings’ under ‘Server Configuration’.
3) Navigate to ‘SQL’ section and you can see the option’ Include databases in disk usage calculations’. Turn it on.
4) Click ‘Save’ button to enable the changes.
If you need any further help please contact our support department.
Related guides
Check MariaDB Versions and Compatibility on Shared Hosting
Check your actual MariaDB/MySQL server version, maintenance coverage and application requirements before requesting a shared-hosting upgrade or move.
MySQLHow to Monitor MySQL Database Server Performance
Learn how to monitor MySQL performance with 4 essential Linux command-line tools.
MySQLHow to secure MySQL connections with SSL on Ubuntu
MySQL allows remote connections and we must protect data transfer happeneing between servers with SSL. Follow this tutorial to learn how.
MySQLHow to set up High Availability WordPress with HyperDB
HyperDB is a drop-in plugin that allows you to set up High Availability WordPress site that can work with multiple database servers at once.



