As with the database counts, the disk usage calculation is handled by /scripts/update_db_cache which executes every 4 hours. This script is executed upon enabling the Tweak Setting. Administrators may also execute this script to recalculate the figures. The disk usage figures are stored in /var/cpanel/datastore/mysql-disk-usage and /var/cpanel/datastore/postgres-disk-usage. The file contents are a colon (:) separated list of user names and
figures in bytes.

Example “mysql-disk-usage contents

[~]# cat /var/cpanel/datastore/mysql-disk-usage

Support for /scripts/updatemysqlquota ends as of cPanel™ 11.25.0. Per this change /scripts/updatemysqlquota is no longer distributed with the product.

Comments are closed.