Orphaned databases in Cpanel

If for some reason Cpanel’s database cache is out of sync and you can’t remove or delete non-existant databases, you can do so manually:

Remove orphaned DB entries from:

/var/cpanel/databases/dbindex.db

Same here:

/var/cpanel/databases/<username>.yaml

Then execute the following:

/usr/local/cpanel/bin/setupdbmap
/scripts/update_db_cache

Comments are closed.