Skip to main content

Existing database user can't be found

Comments

6 comments

  • jndawson
    After more poking around, found these files in /var/cpanel/databases/, which I assume can just be removed: dBuser.json grants_dBuser.cache grants_dBuser.yaml The dBuser is also listed in: users.db users.db.cache What will break when we delete the files and remove the dBuser from the .db files?
    0
  • cPanelMichael
    Apparently, customer used the mapping tool to try to get his dBuser mapped to the non-cpanel created dB. When setting up the account, error message explained that the dBuser already exists.

    Hello, You should be able to map the database user to the existing cPanel account using "WHM >> Database Map Tool". Once you do this, you can delete the database user via the "MySQL Databases" option in cPanel. Can you verify if that's not working? Thank you.
    0
  • jndawson
    Hello, You should be able to map the database user to the existing cPanel account using "WHM >> Database Map Tool". Once you do this, you can delete the database user via the "MySQL Databases" option in cPanel. Can you verify if that's not working? Thank you.

    I realize I didn't make it clear that there wasn't an account set up when the dB was created using phpmyadmin. It was after the dB was created that the customer tried mapping it via the whm > database map tool, and couldn't get anything to work. Neither the dB nor the user ever showed up in the whm sql management tools. The plan is to create an actual account and recreate the dB correctly when we can remove the whm/cpanel links to a nonexistent user and dB. Side note: We tried removing the following files: dBuser.json grants_dBuser.cache grants_dBuser.yaml But that didn't correct the error; we restored those files.
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
    0
  • jndawson
    Update: Somehow, over the weekend, the customer was able to create the desired account. However, cPanel portal wouldn't open and he got an error message. We were able to then delete the account, which serendipitously deleted the /var/cpanel/databases files: dBuser.json grants_dBuser.cache grants_dBuser.yaml and removed the entry in users.db. The only manual editing was in the dbindex.db.json file, where we removed the account:owner entry. We then recreated the account, and it was properly created with no errors. We were able to restore the website and the db from backup files the customer had (although there was no .sql dump file). Everything works, everybody's happy, customer has links to relevant cpanel doc pages.
    0
  • cPanelMichael
    Hello, I'm glad to see the issue is now solved. Thank you for sharing the outcome. Thank you.
    0

Please sign in to leave a comment.