{"id":1049,"date":"2013-07-02T03:39:01","date_gmt":"2013-07-02T09:39:01","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=1049"},"modified":"2018-10-04T00:57:15","modified_gmt":"2018-10-04T06:57:15","slug":"error-account-creation-status-failed-sorry-a-mysql-user-lets-take-dbuser-with-the-name-already-exists","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/error-account-creation-status-failed-sorry-a-mysql-user-lets-take-dbuser-with-the-name-already-exists\/","title":{"rendered":"How to fix &#8211; Error: Account Creation Status: failed,mysql user with the name already exists"},"content":{"rendered":"<p>While restoring a cPanel account from one server to another server there is a chance for following error: Account Creation Status: failed (Sorry, a mysql user (let&#8217;s take &#8216;dbuser&#8217;) with the name already exists<\/p>\n<p>To Delete the user :<\/p>\n<p>Please login into the mysql and follow the steps<\/p>\n<blockquote><p>mysql<\/p>\n<p>mysql &gt; use mysql;<\/p>\n<p>mysql &gt; drop user dbuser@localhost;<\/p>\n<p>OR<\/p>\n<p>mysql&gt; delete from mysql.user where user=dbuser;<\/p><\/blockquote>\n<p>You can also check this using :<\/p>\n<blockquote><p>select User, Host from user where User like dbuser;<\/p><\/blockquote>\n<p>Where dbuser is the user mentioned in the error.<\/p>\n<p>If the above mentioned steps do not fix the issue,please follow the below steps.<\/p>\n<p>Please check for entries of that usernames in the following files and if there is any, remove those entries.<\/p>\n<blockquote><p>\/var\/cpanel\/databases\/users.db<\/p>\n<p>\/etc\/dbowners<\/p><\/blockquote>\n<p>After removing these entries, execute the following command.<\/p>\n<blockquote><p>userdel -f username<\/p><\/blockquote>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While restoring a cPanel account from one server to another server there is a chance for following error: Account Creation Status: failed (Sorry, a mysql user (let&#8217;s take &#8216;dbuser&#8217;) with&hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1,7],"tags":[],"class_list":["post-1049","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","category-server-tweaking"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1049"}],"version-history":[{"count":10,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1049\/revisions"}],"predecessor-version":[{"id":3148,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1049\/revisions\/3148"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}