Solution : Try deleting the mentioned user.
Delete the user :
If it wont delete trymysql
mysql > use mysql;
mysql > drop user testusr7@localhost;
You can also check this usingmysql> delete from mysql.user where user='testusr7';
Now try restoring/recreating whatever you were trying to do and see if you still receive the error.mysql > use mysql;
mysql> select User, Host from user where User like '%testusr7%';
If yes do
If the user exist in the above files, delete that and try again.grep testusr7 /var/cpanel/databases/users.db
grep testusr7 /etc/dbowners
It fixed for me!!!