Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Database size shows 0.00 MB

Discussion in 'Database Discussion' started by AndyX, Nov 20, 2017.

  1. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    While viewing the MySQL databases page in cPanel, a newly copied database is showing 0.00 MB in size. I know the copy was successful as I can see all the tables and content. Is there a trick to make the database size show correctly?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Try running the following command manually to update the disk space usage of the database:

    Code:
    /usr/local/cpanel/scripts/update_db_cache
    It runs as part of the following root cron job:

    Code:
    30 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
    
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    Thank you, Michael.

    So if I understand correctly it would be automatically updated when the cron job runs, what time does the cron job run? I see this:

    30 */4 * * *

    off hand I don't know what times these are.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, that's correct. The cron job is configured to run at thirty minutes past the hour, every four hours.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice