cpanel-Account “XXX”: Account Restore Failed: “Account failure: The restore failed because the username “XXX” is invalid or not an existing cPanel user.”

Please check whether any entries for the user/domain is existing in the following files/locations
/etc/passwd
/etc/userdomains
/etc/group
/etc/dbowners
/var/cpanel/users/
/var/cpanel/userdata/
/var/cpanel/databases
/var/cpanel/databases/users.db.cache
/var/cpanel/databases/users.db

Check for the domains zone file entries in /var/named and /etc/named.conf. If so remove them .
Once every thing is confirmed to be clean, execute the scripts
/scripts/updateuserdomains
/scripts/rebuildhttpdconf
then restart httpd

Remove MSQL user

Login to MySQL

First we’ll login to the MySQL server from the command line with the following command:

mysql -u root -p

In this case, I’ve specified the user root with the -u flag, and then used the -p flag so MySQL prompts for a password. Enter your current password to complete the login.

If you need to change your root (or any other) password in the database.

You should now be at a MySQL prompt that looks very similar to this:

mysql>

If you haven’t yet created a MySQL user.

View a List of MySQL Users

Viewing a full list of MySQL users, including the host they’re associated with, can be done with the following select statement:

SELECT User,Host FROM mysql.user;

Remove a MySQL User

To remove a user from MySQL, we again use the DROP command.

It only takes one simple command to delete a user in MySQL, but BEWARE; dropping a user can not be undone! The command is as follows:

DELETE FROM user where User = 'testuser';

DROP USER 'testuser'@'localhost';

If a user of the name testuser does not exist, then you’ll receive this error:

ERROR 1396 (HY000): Operation DROP USER failed for 'testuser'@'localhost'

Refer to the View a List of MySQL Users section above if you receive the above error, and double check the username and host.

  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Linux /boot: Out of Disk Space While Installing Package kernel-2.6.32-131.2.1.el6.x86_64

I'm trying to install RHEL 6 kernel updates and patches using the yum command and getting the...

How To Manually Update Cpanel?

/scripts/upcp /scripts/upcp --force

如何透過SSH改變文件屬性與權限

我們現在知道文件權限對於一個系統的安全重要性了,也知道文件的權限對於使用者與群組的相關性, 那麼如何修改一個文件的屬性與權限呢?又!有多少文件的權限我們可以修改呢?...

How To Install and Testing Memcache PHP Extension?

Create file test.php [code]$vi /home/www/public_html/test.php [/code] Execute test.php from...

Installing PHPShield Loaders - PHP5.3.x Server

In this tutorial, we will show you how to do this on a server that is running PHP5.3.x Please...