{"id":1434,"date":"2022-03-03T11:35:53","date_gmt":"2022-03-03T06:05:53","guid":{"rendered":"https:\/\/hostkicker.com\/blog\/?p=1434"},"modified":"2022-03-08T17:28:22","modified_gmt":"2022-03-08T11:58:22","slug":"how-to-add-an-admin-user-to-the-wordpress-database-via-mysql","status":"publish","type":"post","link":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/","title":{"rendered":"How to Add an Admin User to the WordPress Database via MySQL"},"content":{"rendered":"<p><span data-preserver-spaces=\"true\">Are you searching for a way to add an Admin User to the WordPress Database via MySQL? <\/span><span data-preserver-spaces=\"true\">This post will share, How to Add an Admin User to the WordPress Database via MySQL.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">If you can not access your wp-admin area for reasons such as your site being hacked, you forgot your password, your site displaying some error, or are locked out of your site. Don&#8217;t worry! There&#8217;s another way to gain access to your site.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">You can make a new WordPress admin user by editing your site&#8217;s database.<\/span><\/p>\n<h2><span data-preserver-spaces=\"true\">Creating a new WordPress admin user with phpMyAdmin<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">You can make a new WordPress admin user by following the steps below:\u00a0<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Access your MySQL database<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">visit the\u00a0<\/span><em><span data-preserver-spaces=\"true\">wp_users<\/span><\/em><span data-preserver-spaces=\"true\">\u00a0table<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Insert a new WordPress admin user in the user&#8217;s table<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Insert user meta values<\/span><\/li>\n<\/ol>\n<p><strong><span data-preserver-spaces=\"true\">Note:\u00a0\u00a0<\/span><\/strong><span data-preserver-spaces=\"true\">Before doing anything, You must create a backup of your database.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Let&#8217;s get started!<\/span><\/p>\n<h3><span data-preserver-spaces=\"true\">Step 1: Access your MySQL database<\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">To start, you have to access your hosting c-panel and then locate your WordPress database section to edit it. Then click on the phpMyAdmin option provided there.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1435\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/phpmyadmin.gif\" alt=\"\" width=\"520\" height=\"115\" \/><\/p>\n<h3><span data-preserver-spaces=\"true\">Step 2: Visit the\u00a0<\/span><em><span data-preserver-spaces=\"true\">wp_users<\/span><\/em><span data-preserver-spaces=\"true\">\u00a0table.<\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">After that, search for the\u00a0\u00a0<\/span><strong><span data-preserver-spaces=\"true\">wp_users<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0and click it. We have to edit the wp_users and wp_usermeta tables.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1436\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-389-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-wp-users-table-png-2022-02-23-19_13_24-edit-1.jpg\" alt=\"\" width=\"637\" height=\"347\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-389-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-wp-users-table-png-2022-02-23-19_13_24-edit-1.jpg 1136w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-389-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-wp-users-table-png-2022-02-23-19_13_24-edit-1-300x164.jpg 300w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-389-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-wp-users-table-png-2022-02-23-19_13_24-edit-1-1024x559.jpg 1024w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-389-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-wp-users-table-png-2022-02-23-19_13_24-edit-1-768x419.jpg 768w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/p>\n<h3><span data-preserver-spaces=\"true\">Step 3: Insert a new WordPress admin user<\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Now, click<\/span><strong><span data-preserver-spaces=\"true\">\u00a0the insert<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0option in the\u00a0<\/span><strong><span data-preserver-spaces=\"true\">wp_users<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0table to insert our new admin user&#8217;s information.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1437\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-wpbeginner-blogposts-wpusersinsert2-gif-2022-02-23-19_23_13-edit.jpg\" alt=\"\" width=\"656\" height=\"342\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-wpbeginner-blogposts-wpusersinsert2-gif-2022-02-23-19_23_13-edit.jpg 656w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-wpbeginner-blogposts-wpusersinsert2-gif-2022-02-23-19_23_13-edit-300x156.jpg 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/p>\n<p><span data-preserver-spaces=\"true\">Next, you will see the insert form. you have to add the following details:<\/span><\/p>\n<ul>\n<li><strong><span data-preserver-spaces=\"true\">ID<\/span><\/strong><span data-preserver-spaces=\"true\"> \u2013 select any number like (3,4,5). We will use 3 for now.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_login<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 Enter the username you like to use to access the wp-admin Dashboard.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_pass<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 enter a password for this username and select MD5 in the functions menu next to it ( see our example ).<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_nicename<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 pick a nickname you would like to refer yourself as, or you can leave it for now.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_email<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 Enter the email you want to link with this account.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_url<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 enter your website&#8217;s URL.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_registered<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 Enter the date\/time when this admin user is created.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_status<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 Fix this value to 0.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">display_name<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 Enter the name you would like to display for this user on the site.<\/span><\/li>\n<\/ul>\n<p><span data-preserver-spaces=\"true\">After filling in the details, scroll to the bottom and click\u00a0<\/span><em><span data-preserver-spaces=\"true\">the Go tab.<\/span><\/em><\/p>\n<h3><span data-preserver-spaces=\"true\">Step 4: Insert user meta values<\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">In the next step, we have to edit the\u00a0\u00a0<\/span><strong><span data-preserver-spaces=\"true\">wp_usermeta<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0table.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Now, Click on the wp_usermeta table and click on the Insert button again. Next, you will see the insert form. you have to add the following details:<\/span><\/p>\n<ul>\n<li><strong><span data-preserver-spaces=\"true\">unmeta_id<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 leave this empty\u00a0<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_id<\/span><\/strong><span data-preserver-spaces=\"true\"> \u2013 This will be the id of the user you created in the last step. Recall we used 3.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">meta_key<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 Enter wp_capabilities<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">meta_value<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 insert this: a:1:{s:13:&#8221;administrator&#8221;;s:1:&#8221;1&#8243;;}<\/span><\/li>\n<\/ul>\n<p><span data-preserver-spaces=\"true\">Now, Insert another row with the following details:<\/span><\/p>\n<ul>\n<li><strong><span data-preserver-spaces=\"true\">unmeta_id<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 leave this blank\u00a0<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">user_id<\/span><\/strong><span data-preserver-spaces=\"true\"> \u2013 this will be the user id, enter 3 ( we used in the last step)<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">meta_key<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 enter wp_user_level<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">meta_value<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0\u2013 10<\/span><\/li>\n<\/ul>\n<p><span data-preserver-spaces=\"true\">After that, click on the &#8216;Go&#8217; tab, and you have successfully created a new username. Now you will be able to login to your wp-admin with the username and password you enter for this user.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1438\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-471-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-add-capability-jpg-2022-02-23-19_29_41-edit.jpg\" alt=\"\" width=\"619\" height=\"404\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-471-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-add-capability-jpg-2022-02-23-19_29_41-edit.jpg 1144w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-471-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-add-capability-jpg-2022-02-23-19_29_41-edit-300x196.jpg 300w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-471-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-add-capability-jpg-2022-02-23-19_29_41-edit-1024x669.jpg 1024w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/screencapture-mllj2j8xvfl0-i-optimole-Lsv2lkg-cHDL-36fa1-w-714-h-471-q-98-dpr-1-3-https-s15165-pcdn-co-wp-content-uploads-2020-07-add-capability-jpg-2022-02-23-19_29_41-edit-768x501.jpg 768w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/p>\n<h4><span data-preserver-spaces=\"true\">Extra tip: SQL query<\/span><\/h4>\n<p><span data-preserver-spaces=\"true\">You can copy the following code and drop this SQL query in your database if you want to speed up this process.<\/span><\/p>\n<pre><span data-preserver-spaces=\"true\"> INSERT INTO `databasename`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('4', 'demo', MD5('demo'), 'Your Name', 'test@yourdomain.com', 'http:\/\/www.test.com\/', '2011-06-07 00:00:00', '', '0', 'Your Name');<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_capabilities', 'a:1:{s:13:\"administrator\";s:1:\"1\";}');<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_user_level', '10');<\/span><\/pre>\n<p><strong><span data-preserver-spaces=\"true\">Note:<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0Remember to change the database name to your database name. Also, don&#8217;t forget to change the values.<\/span><\/p>\n<p><strong>To conclude: <\/strong>There can be many reasons why you can&#8217;t log in to your WordPress admin dashboard using the correct details. Maybe your admin user is deleted by the hackers, or you forgot your login details. In that case, you have to create a new admin user using MySQL. We hope this write-up helped you to add an Admin User to the WordPress Database via MySQL.<\/p>\n<p><span style=\"font-weight: 400\">If you are experiencing any other error on your site, you can fix it by following the steps told in our other article<\/span><a href=\"https:\/\/hostkicker.com\/blog\/what-to-do-when-you-are-locked-out-of-wordpress-admin-area\/\"><span style=\"font-weight: 400\"> on <\/span><span style=\"font-weight: 400\">what to do when you are logged out of the WordPress admin area.<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you searching for a way to add an Admin User to the WordPress Database via MySQL? This post will share, How to Add an Admin User to the WordPress Database via MySQL. If you can not access your wp-admin area for reasons such as your site being hacked, you forgot your password, your site [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1621,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1434","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wp-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Add an Admin User to the WordPress Database via MySQL<\/title>\n<meta name=\"description\" content=\"To add an Admin User to the WordPress Database via MySQL, Access your MySQL database, visit the\u00a0wp_users\u00a0table, Insert new admin user and user meta values...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-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 Add an Admin User to the WordPress Database via MySQL\" \/>\n<meta property=\"og:description\" content=\"To add an Admin User to the WordPress Database via MySQL, Access your MySQL database, visit the\u00a0wp_users\u00a0table, Insert new admin user and user meta values...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/\" \/>\n<meta property=\"og:site_name\" content=\"Hostkicker\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-03T06:05:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-08T11:58:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/row79-01.png\" \/>\n\t<meta property=\"og:image:width\" content=\"693\" \/>\n\t<meta property=\"og:image:height\" content=\"511\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Olivia Smith\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olivia Smith\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/\"},\"author\":{\"name\":\"Olivia Smith\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/person\\\/f06306b595baa96c90a0491b941d7660\"},\"headline\":\"How to Add an Admin User to the WordPress Database via MySQL\",\"datePublished\":\"2022-03-03T06:05:53+00:00\",\"dateModified\":\"2022-03-08T11:58:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/\"},\"wordCount\":697,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/row79-01.png\",\"articleSection\":[\"Wp tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/\",\"name\":\"How to Add an Admin User to the WordPress Database via MySQL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/row79-01.png\",\"datePublished\":\"2022-03-03T06:05:53+00:00\",\"dateModified\":\"2022-03-08T11:58:22+00:00\",\"description\":\"To add an Admin User to the WordPress Database via MySQL, Access your MySQL database, visit the\u00a0wp_users\u00a0table, Insert new admin user and user meta values...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/row79-01.png\",\"contentUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/row79-01.png\",\"width\":693,\"height\":511,\"caption\":\"To add an Admin User to the WordPress Database via MySQL, Access your MySQL database, visit the\u00a0wp_users\u00a0table, Insert new admin user and user meta values\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add an Admin User to the WordPress Database via MySQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\",\"name\":\"Hostkicker\",\"description\":\"Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\",\"name\":\"Hostkicker\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-logo-01.png\",\"contentUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-logo-01.png\",\"width\":940,\"height\":218,\"caption\":\"Hostkicker\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/person\\\/f06306b595baa96c90a0491b941d7660\",\"name\":\"Olivia Smith\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"caption\":\"Olivia Smith\"},\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/author\\\/olivia\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Add an Admin User to the WordPress Database via MySQL","description":"To add an Admin User to the WordPress Database via MySQL, Access your MySQL database, visit the\u00a0wp_users\u00a0table, Insert new admin user and user meta values...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/","og_locale":"en_US","og_type":"article","og_title":"How to Add an Admin User to the WordPress Database via MySQL","og_description":"To add an Admin User to the WordPress Database via MySQL, Access your MySQL database, visit the\u00a0wp_users\u00a0table, Insert new admin user and user meta values...","og_url":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/","og_site_name":"Hostkicker","article_published_time":"2022-03-03T06:05:53+00:00","article_modified_time":"2022-03-08T11:58:22+00:00","og_image":[{"width":693,"height":511,"url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/row79-01.png","type":"image\/png"}],"author":"Olivia Smith","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Olivia Smith","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/#article","isPartOf":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/"},"author":{"name":"Olivia Smith","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/person\/f06306b595baa96c90a0491b941d7660"},"headline":"How to Add an Admin User to the WordPress Database via MySQL","datePublished":"2022-03-03T06:05:53+00:00","dateModified":"2022-03-08T11:58:22+00:00","mainEntityOfPage":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/"},"wordCount":697,"commentCount":0,"publisher":{"@id":"https:\/\/hostkicker.com\/blog\/#organization"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/row79-01.png","articleSection":["Wp tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/","url":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/","name":"How to Add an Admin User to the WordPress Database via MySQL","isPartOf":{"@id":"https:\/\/hostkicker.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/#primaryimage"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/row79-01.png","datePublished":"2022-03-03T06:05:53+00:00","dateModified":"2022-03-08T11:58:22+00:00","description":"To add an Admin User to the WordPress Database via MySQL, Access your MySQL database, visit the\u00a0wp_users\u00a0table, Insert new admin user and user meta values...","breadcrumb":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/#primaryimage","url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/row79-01.png","contentUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/row79-01.png","width":693,"height":511,"caption":"To add an Admin User to the WordPress Database via MySQL, Access your MySQL database, visit the\u00a0wp_users\u00a0table, Insert new admin user and user meta values"},{"@type":"BreadcrumbList","@id":"https:\/\/hostkicker.com\/blog\/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostkicker.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add an Admin User to the WordPress Database via MySQL"}]},{"@type":"WebSite","@id":"https:\/\/hostkicker.com\/blog\/#website","url":"https:\/\/hostkicker.com\/blog\/","name":"Hostkicker","description":"Blog","publisher":{"@id":"https:\/\/hostkicker.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostkicker.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostkicker.com\/blog\/#organization","name":"Hostkicker","url":"https:\/\/hostkicker.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-logo-01.png","contentUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-logo-01.png","width":940,"height":218,"caption":"Hostkicker"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/person\/f06306b595baa96c90a0491b941d7660","name":"Olivia Smith","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","caption":"Olivia Smith"},"url":"https:\/\/hostkicker.com\/blog\/author\/olivia\/"}]}},"jetpack_featured_media_url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2022\/02\/row79-01.png","_links":{"self":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/1434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/comments?post=1434"}],"version-history":[{"count":3,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/1434\/revisions"}],"predecessor-version":[{"id":1682,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/1434\/revisions\/1682"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/media\/1621"}],"wp:attachment":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/media?parent=1434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/categories?post=1434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/tags?post=1434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}