Pages

Wednesday, September 17, 2014

cPanel's WHM: "A database owner with the name already exists"

You've deleted an account via cPanel's WHM, but needed to recreate it again. But, unfortunately, you got the following error message:
Account Creation Status: failed 
A database owner with the name <account-name> already exists
Well, it's a bug in the cPanel system, where some configuration files are not removed by the account-deletion scripts. But, here is the simple solution:

Go to /var/cpanel/databases

Find the following two entries for the terminated (deleted) account name:

     <account-name>.cache
     <account-name>.yaml

Delete these two files.

Now, successfully recreate the terminated account via WHM.

Voila!