5kits zhao

MySQL DB size shows 0 Mb in cPanel

When I logged to my cPanel >> Databases >> MySQL databases I see that the size all of my DB is show”n by 0 Mb
It”s wrong and I have found a fix for that.

1) Edit /var/cpanel/cpanel.config

Change:

disk_usage_include_sqldbs=0

to

disk_usage_include_sqldbs=1

Then run the following:

/scripts/update_db_cache

This may take a few minutes if you have a ton of users with databases, but after this, you should see the database disk usage show up accurately in cPanel.

Leave a Reply