The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MySQL Disk Usage

Discussion in 'General Discussion' started by sparek-3, Jan 29, 2012.

  1. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,384
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    How is MySQL Disk Usage calculated in the user's cPanel?

    I have a cPanel user that has no MySQL databases, but they show a MySQL disk usage. I don't know where cPanel is getting the MySQL Disk Usage in it's calculations.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    There is an internal case open (# 49515) that deals with the inability of "/usr/local/cpanel/scripts/update_db_cache" to properly clear the datastore for MySQL databases after a user removes all of the databases from an account. This is resolved as of cPanel version 11.32, per the following change log:

    11.32 Change Log

    In the meantime, try removing the following files from the "/var/cpanel/datastore/username/" directory:

    Code:
    mysql-db-count
    mysql-db-usage
    mysql-disk-usage
    Then, run the following command:

    Code:
    /usr/local/cpanel/scripts/update_db_cache
    These steps should only be taken on versions prior to 11.32 when the account has no databases.

    Thank you.
     
Loading...

Share This Page