Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to fix error " MySQL user exists " While restoring a cPanel account  (Read 2790 times)

0 Members and 1 Guest are viewing this topic.

mohitht

  • Guest
Hi All,

Sometimes while restoring a cPanel account their might be causing an error like “Account Creation Status: failed (Sorry, a mysql user with the name already exists”

In order to fix this issue  follow the steps below

First check for entries of that usernames in the following files and if there is any, remove those entries.

/var/cpanel/databases/users.db

/etc/dbowners

After removing the entries , execute the following command.

userdel -f username


The above commands will also fix the error, “Account Creation Status: failed Sorry, a user with the name already exists”


Thanks  :)