{"id":1734,"date":"2021-09-08T06:48:02","date_gmt":"2021-09-08T06:48:02","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1734"},"modified":"2021-09-08T08:36:35","modified_gmt":"2021-09-08T08:36:35","slug":"how-to-create-a-new-admin-account-in-wordpress-via-mysql","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/","title":{"rendered":"How to Create a New Admin Account in WordPress via MySQL"},"content":{"rendered":"<p>The following points undertake that your WordPress database table prefix is ready to \u201cwp_\u201d. If you&#8217;re working with one thing that is different table prefix, then change your code accordingly. As an example, if you&#8217;re using \u201cwpsqltable_\u201d instead of \u201cwp_\u201d, the code \u201cINSERT INTO `wp_users`\u201d gets change to \u201cINSERT INTO ` wpsqltable_users`\u201d.<\/p>\n<p>Step 1: Log in to your cPanel account using login details.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1740\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-1-1-300x151.png\" alt=\"cp-mysql-1\" width=\"644\" height=\"324\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-1-1-300x151.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-1-1.png 644w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/p>\n<p>Step 2: Locate the Databases section from the main cPanel interface, and then click on the icon entitled phpMyAdmin.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1737\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-2-300x179.png\" alt=\"cp-mysql-2\" width=\"520\" height=\"311\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-2-300x179.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-2.png 520w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<p>Step 3: Once the first screen appears, see at the left hand sidebar and click on the database for your explicit WordPress installation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1738\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-3-300x168.jpg\" alt=\"cp-mysql-3\" width=\"795\" height=\"446\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-3-300x168.jpg 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-3-768x431.jpg 768w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-3.jpg 795w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<p>Step 4: When the database information get&#8217;s loaded, you can find the tab named as the SQL and click on it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1739\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-4-300x101.png\" alt=\"cp-mysql-4\" width=\"992\" height=\"333\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-4-300x101.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-4-768x258.png 768w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-4.png 992w\" sizes=\"auto, (max-width: 992px) 100vw, 992px\" \/><\/p>\n<p>Step 5: Following is that the code to feature a new admin account within the SQL editor named newadmin with the password pass_abc. you&#8217;ll be able to change any of the content in red to fit your needs, however leave all other data as it is.<\/p>\n<p><code>INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`)<\/code><\/p>\n<p><code>VALUES ('newadmin', MD5('password'), 'name', 'email@abc.com', '0');<\/code><\/p>\n<p><code>INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)<br \/>\nVALUES (NULL, (Select max(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:\"administrator\";s:1:\"1\";}');<\/code><\/p>\n<p><code>INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)<br \/>\nVALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10');<\/code><\/p>\n<p>Step 6: When substitution any data fields as per your need, click the Go button to execute the code.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1735\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-5-300x250.png\" alt=\"cp-mysql-5\" width=\"589\" height=\"491\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-5-300x250.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-5.png 589w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/p>\n<p>Step 7: when the above step the screen is refresh and you&#8217;ll be able to see the message \u20181 row affected\u2018 after each of the three SQL statements. This suggests the query has run with success. From here, visit your WordPress admin login panel as common and utilize the new admin login information. you&#8217;ll be directed to admin interface with none hassle.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following points undertake that your WordPress database table prefix is ready to \u201cwp_\u201d. If you&#8217;re working with one thing that is different table prefix, then change your code accordingly. As an example, if you&#8217;re using \u201cwpsqltable_\u201d instead of \u201cwp_\u201d, the code \u201cINSERT INTO `wp_users`\u201d gets change to \u201cINSERT INTO ` wpsqltable_users`\u201d. Step 1: Log [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1734","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create a New Admin Account in WordPress via MySQL - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a New Admin Account in WordPress via MySQL - OWS KB\" \/>\n<meta property=\"og:description\" content=\"The following points undertake that your WordPress database table prefix is ready to \u201cwp_\u201d. If you&#8217;re working with one thing that is different table prefix, then change your code accordingly. As an example, if you&#8217;re using \u201cwpsqltable_\u201d instead of \u201cwp_\u201d, the code \u201cINSERT INTO `wp_users`\u201d gets change to \u201cINSERT INTO ` wpsqltable_users`\u201d. Step 1: Log [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-08T06:48:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-08T08:36:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-1-1-300x151.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/09\/cp-mysql-1-1.png\",\"width\":644,\"height\":324,\"caption\":\"cp-mysql-1\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/\",\"name\":\"How to Create a New Admin Account in WordPress via MySQL - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/#primaryimage\"},\"datePublished\":\"2021-09-08T06:48:02+00:00\",\"dateModified\":\"2021-09-08T08:36:35+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-admin-account-in-wordpress-via-mysql\/\",\"name\":\"How to Create a New Admin Account in WordPress via MySQL\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=1734"}],"version-history":[{"count":3,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1734\/revisions"}],"predecessor-version":[{"id":1748,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1734\/revisions\/1748"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}