---
title: Database Size Shows 0 MB in cPanel? The Fix in WHM or SSH
description: "**In short**If databases show **0 MB** in cPanel, the server is not counting them in disk usage. Turn it on in **WHM, Server Configuration, Tweak Settings**, the **SQL** tab, **Include databases in disk usage calculations**: On, then save. Or over…"
url: "https://www.hyyat.com/en/knowledgebase/cpanel-database-size-shows-zero/"
updated: "2026-11-22"
category: Server management / WHM/cPanel
---

# Database Size Shows 0 MB in cPanel? The Fix in WHM or SSH

**In short**If databases show **0 MB** in cPanel, the server is not counting them in disk usage. Turn it on in **WHM, Server Configuration, Tweak Settings**, the **SQL** tab, **Include databases in disk usage calculations**: On, then save. Or over SSH, set `disk_usage_include_sqldbs=1` and update the cache.

![Database Size Shows 0 MB in cPanel? The Fix in WHM or SSH](https://www.hyyat.com/wp-content/uploads/2026/11/hkb-tr-13408-en.webp)

 **This guide is for server owners** if you have a VPS or dedicated server with WHM. If you would rather not manage the server yourself, our [server management](https://www.hyyat.com/en/server-management/) service can do it for you.

![Database size showing 0 MB in cPanel](https://www.hyyat.com/wp-content/uploads/2019/04/Size-of-MySQL0.png)

Sometimes databases show 0 MB in cPanel even though they hold data. The server is simply not counting databases in account disk usage. That makes usage figures inaccurate; turning the option on gives you and your customers real numbers.

## The fix in WHM

1. **Log in to WHM** in your browser at `https://server-IP:2087` or `https://server-hostname:2087` as root.
2. **Open Server Configuration,** then **Tweak Settings**.
3. **Choose the SQL tab** and find **Include databases in disk usage calculations**.
4. **Set it to On** and click **Save**.

![Logging in to WHM](https://www.hyyat.com/wp-content/uploads/2019/02/1_whm_firewall.png)

![Server Configuration in WHM](https://www.hyyat.com/wp-content/uploads/2019/04/Size-of-MySQL0-1.png)

![The Tweak Settings page in WHM](https://www.hyyat.com/wp-content/uploads/2019/04/Size-of-MySQL0-2.png)

![The Include databases in disk usage calculations option in the SQL tab](https://www.hyyat.com/wp-content/uploads/2019/04/Size-of-MySQL0-3.png)

## The fix from the command line

Log in over SSH as root, then run:

```
sed -i 's/^disk_usage_include_sqldbs=.*/disk_usage_include_sqldbs=1/' /var/cpanel/cpanel.config
/usr/local/cpanel/scripts/update_db_cache
```

 **Careful:** after enabling it, displayed usage may rise for some accounts, and some may hit their plan limit. Review large accounts first.

## Summary

- The cause is an option turned off in Tweak Settings.
- Turn on Include databases in disk usage calculations.
- Update the cache if you change it over SSH.

Need a server with cPanel and WHM? See [VPS servers](https://www.hyyat.com/en/vps-hosting/) and [the cPanel and WHM on VPS guide](https://www.hyyat.com/en/knowledgebase/cpanel-whm-on-vps/).

## Frequently asked questions

   Why does my database size show zero in cPanel?

Because the server does not count databases in account disk usage. Turn the option on in Tweak Settings.

   Does enabling it affect websites?

It changes nothing on the sites, but displayed usage may rise and some accounts may reach their limit.

   **Related guides**

- [cPanel and WHM on a VPS — The Complete 2026 Guide: What They Are, Licensing, and When to Choose Them](https://www.hyyat.com/en/knowledgebase/cpanel-whm-on-vps/)
- [How to Install cPanel and WHM on Your Server](https://www.hyyat.com/en/knowledgebase/install-cpanel-whm/)
- [How to Enable AutoSSL in WHM for Free Automatic SSL](https://www.hyyat.com/en/knowledgebase/enable-autossl-whm/)
- [How to Increase the phpMyAdmin Upload Size on a cPanel Server](https://www.hyyat.com/en/knowledgebase/increase-phpmyadmin-upload-size-whm/)

[All guides in this section →](https://www.hyyat.com/en/kb/whm-cpanel-control-panels/)

  **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[Server Management](https://www.hyyat.com/en/server-management/)[dedicated server](https://www.hyyat.com/en/dedicated-server/)
