Skip to main content

How to find unmapped databases?

Comments

1 comment

  • cPanelMichael
    Hello, There's no script or command available that will list databases that aren't associated with a cPanel account, however you can find a list of databases that are associated with cPanel accounts with a command such as:
    whmapi1 list_databases
    This WHM API 1 function is documented at: WHM API 1 Functions - list_databases - Software Development Kit - cPanel Documentation You'd need to manually compare this with the databases stored in the /var/lib/mysql/ directory to see which databases aren't associated with a cPanel account, or develop a custom script that cross-references the results. Thank you.
    0

Please sign in to leave a comment.