An account creates a MySQL db and user through the normal cPanel interface and they both show up in the cPanel interface. Then the account deletes both of them and they are gone from the cPanel interface. Then a command line tool attempts to create the same database and user. It's successful (they exist and can be accessed), but the database and user don't show up in the cPanel interface. So I use dbmaptool as follows: /usr/local/cpanel/bin/dbmaptool CPUSER --type mysql --dbusers DBUSERNAME And that works, so now the username shows up in cPanel, so then I do this: /usr/local/cpanel/bin/dbmaptool CPUSER --type mysql --dbs DBNAME And it gives me the error "DBNAME is already owned by CPUSER" and it still doesn't show up in the cPanel interface. It seems that either something is being left behind when a database is deleted from within the cPanel interface, or there is a bug in the dbmaptool that makes it think the database is still owned by an account. I need to be able to recreate the database and map it to a user even if it previously existed. Any thoughts?