{"id":465,"date":"2014-10-01T19:51:21","date_gmt":"2014-10-01T17:51:21","guid":{"rendered":"http:\/\/servikus.com\/tutorials\/?p=465"},"modified":"2014-10-01T20:03:03","modified_gmt":"2014-10-01T18:03:03","slug":"add-an-admin-user-in-wordpress-with-phpmyadmin","status":"publish","type":"post","link":"https:\/\/servikus.com\/tutorials\/add-an-admin-user-in-wordpress-with-phpmyadmin\/","title":{"rendered":"Add an Admin user in WordPress with phpMyAdmin"},"content":{"rendered":"<p>When you are unable to login to your Admin account at WordPress (your site got hacked or you simply forgot your password and\/or username) it could be useful to create another account with <strong>admin privileges<\/strong>. We will show you how to do that in <strong>phpMyAdmin<\/strong>.<br \/>\nFor this tutorial you will need: <strong>phpMyAdmin<\/strong><\/p>\n<p>1. <strong>Login<\/strong> to your <strong>phpMyAdmin<\/strong> (through <strong>www.your_site\/phpmyadmin<\/strong> or via <strong>cPanel<\/strong>)<br \/>\n2. Locate your <strong>WP database<\/strong><br \/>\n3. Go to table <strong>wp-users<\/strong><br \/>\n4. Click <strong>Insert<\/strong><br \/>\n<a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/1.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-466\" src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/1-300x86.jpg\" alt=\"1\" width=\"300\" height=\"86\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/1-300x86.jpg 300w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/1-1024x293.jpg 1024w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/1.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>5. Enter <strong>user_login<\/strong> (desired username), <strong>user_pass<\/strong> (desired password and choose <strong>MD5 in dropdown menu<\/strong>!) and <strong>user_email<\/strong> (your email). Click <strong>Go<\/strong><br \/>\n<a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/2.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-473\" src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/2-300x137.jpg\" alt=\"2\" width=\"300\" height=\"137\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/2-300x137.jpg 300w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/2-1024x468.jpg 1024w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/2.jpg 1221w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>6. Click on <strong>Browse<\/strong> and remember <strong>ID<\/strong> of your newly created user<br \/>\n<a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/3.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-474\" src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/3-300x125.jpg\" alt=\"3\" width=\"300\" height=\"125\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/3-300x125.jpg 300w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/3-1024x429.jpg 1024w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/3.jpg 1355w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>7. Now go to table <strong>wp_usermeta<\/strong> and click on <strong>Insert<\/strong><br \/>\n8. In first field enter <strong>user_id<\/strong> (from step 6), <strong>meta_key<\/strong> (<strong>wp_capabilities<\/strong>) and <strong>meta_value<\/strong> (<strong>a:1:{s:13:&#8221;administrator&#8221;;b:1;}<\/strong>)<br \/>\n9. In second field (below) enter <strong>user_id<\/strong> (from step 6), <strong>meta_key<\/strong> (<strong>wp_user_level<\/strong>) and <strong>meta_value<\/strong> (<strong>10<\/strong>). Click <strong>Go<\/strong><br \/>\n<a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/4.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-475\" src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/4-300x262.jpg\" alt=\"4\" width=\"300\" height=\"262\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/4-300x262.jpg 300w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/4-1024x894.jpg 1024w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2014\/10\/4.jpg 1091w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>10. That\u2019s it. You can now login to your WordPress and change pass of your old admin user (or whatever you need to do)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you are unable to login to your Admin account at WordPress (your site got hacked or you simply forgot your password and\/or username) it could be useful to create another account with admin privileges. We will show you how to do that in phpMyAdmin. For this tutorial you will need: phpMyAdmin 1. Login to&#8230; <a class=\"read-more\" href=\"https:\/\/servikus.com\/tutorials\/add-an-admin-user-in-wordpress-with-phpmyadmin\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,10],"tags":[],"_links":{"self":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/465"}],"collection":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":5,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":471,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/465\/revisions\/471"}],"wp:attachment":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}