{"id":10476,"date":"2026-05-12T03:57:45","date_gmt":"2026-05-12T03:57:45","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=10476"},"modified":"2026-05-12T03:57:45","modified_gmt":"2026-05-12T03:57:45","slug":"how-to-create-a-wordpress-admin-user-via-phpmyadmin","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-create-a-wordpress-admin-user-via-phpmyadmin\/","title":{"rendered":"How to create a WordPress admin user via phpMyAdmin"},"content":{"rendered":"<p>If you have lost access to your WordPress administrator account and cannot use the &ldquo;Lost your password?&rdquo; link or SSH commands, you can manually add a new user via phpMyAdmin. This method is safe, beginner-friendly, and involves adding records to two specific database tables: wp_users and wp_usermeta.<\/p><h2 id=\"h-step-1-access-phpmyadmin\">Step 1: Access phpMyAdmin<\/h2><p>First, you need to open the database management tool for your website:<\/p><ol>\n<li class=\"no-margin\">Navigate to <b><a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a>&nbsp;<\/b>&rarr; <b>Dashboard<\/b>, search for <b>Databases Management <\/b>on the sidebar and click on it:<br>\n<img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/5c1f1d58-965e-4780-884d-9e491bbd0365.jpg\" alt=\"Hostinger hPanel sidebar with Databases section open and Management option highlighted\" width=\"250\" data-media-id=\"5119\"><\/li>\n<li class=\"no-margin\">Select the database and click on <b>phpMyAdmin<\/b>:<img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/b88d6bc3-5320-4068-bf09-18a19e0b55bd.jpg\" alt=\"Hostinger MySQL database row with the Enter phpMyAdmin button highlighted\" data-media-id=\"5120\"><\/li>\n<\/ol><h2 id=\"h-step-2-add-a-new-user-to-the-wp_users-table\">Step 2: Add a new user to the wp_users table<\/h2><p>The wp_users table stores basic login information.<\/p><ol>\n<li>On the left sidebar of phpMyAdmin, click on the wp_users table (Note: your table prefix might be different, e.g., wp123_users).<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10477\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-42.png\" alt=\"\" width=\"303\" height=\"679\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-42.png 303w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-42-134x300.png 134w\" sizes=\"(max-width: 303px) 100vw, 303px\" \/><\/li>\n<li>Click the Insert tab at the top of the page.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10478\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-48.png\" alt=\"\" width=\"787\" height=\"188\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-48.png 787w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-48-300x72.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-48-768x183.png 768w\" sizes=\"(max-width: 787px) 100vw, 787px\" \/><\/li>\n<li>Fill in the following fields:\n<ul>\n<li>ID: Enter a unique number (e.g., 1000). Remember this ID; you will need it for the next step.<\/li>\n<li>user_login: The username you want to use for logging in.<\/li>\n<li>user_pass: Type your desired password. Important: In the Function dropdown, select MD5 to encrypt the password.<\/li>\n<li>user_nicename: A nickname for the user.<\/li>\n<li>user_email: A valid email address.<\/li>\n<li>user_registered: Select the current date and time using the calendar icon.<\/li>\n<li>user_status: Set this to 0.<\/li>\n<li>display_name: The name to be displayed publicly on the site.<\/li>\n<\/ul>\n<\/li>\n<li>Click Go at the bottom of the page to save the user.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10479\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-52.png\" alt=\"\" width=\"560\" height=\"678\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-52.png 560w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-52-248x300.png 248w\" sizes=\"(max-width: 560px) 100vw, 560px\" \/><\/li>\n<\/ol><h2 id=\"h-step-3-assign-administrator-permissions-in-wp_usermeta\">Step 3: Assign Administrator permissions in wp_usermeta<\/h2><p>Adding a user to the database is not enough; you must manually assign them the &ldquo;Administrator&rdquo; role.<\/p><ol>\n<li>Click on the wp_usermeta table in the left sidebar.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10480\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-53.png\" alt=\"\" width=\"307\" height=\"674\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-53.png 307w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-53-137x300.png 137w\" sizes=\"(max-width: 307px) 100vw, 307px\" \/><\/li>\n<li>Click the Insert tab at the top.<\/li>\n<li>You will see two entry forms. Fill out the first form as follows:\n<ul>\n<li>unmeta_id: Leave blank (auto-generated).<\/li>\n<li>user_id: Enter the ID you used in Step 2 (e.g., 1000).<\/li>\n<li>meta_key: Enter wp_capabilities (replace wp_ with your actual prefix if different).<\/li>\n<li>meta_value: Paste exactly this: a:1:{s:13:&rdquo;administrator&rdquo;;s:1:&rdquo;1&Prime;;}<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10481\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55.png\" alt=\"\" width=\"1157\" height=\"852\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55.png 1157w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55-300x221.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55-1024x754.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55-768x566.png 768w\" sizes=\"(max-width: 1157px) 100vw, 1157px\" \/><\/li>\n<\/ul>\n<\/li>\n<li>Fill out the second form on the same page:\n<ul>\n<li>unmeta_id: Leave blank.<\/li>\n<li>user_id: Enter the same ID (e.g., 1000).<\/li>\n<li>meta_key: Enter wp_user_level.<\/li>\n<li>meta_value: Enter 10.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10482\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55_1.png\" alt=\"\" width=\"1159\" height=\"852\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55_1.png 1159w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55_1-300x221.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55_1-1024x753.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-12_10-55_1-768x565.png 768w\" sizes=\"(max-width: 1159px) 100vw, 1159px\" \/><\/li>\n<\/ul>\n<\/li>\n<li>Click Go at the bottom to save both entries.<\/li>\n<\/ol><h2 id=\"h-step-4-verify-and-finalize\">Step 4: Verify and Finalize<\/h2><ol>\n<li>Go to your WordPress login page (yourdomain.com\/wp-admin).<\/li>\n<li>Log in with the new username and password.<\/li>\n<li>Once logged in, go to Users &rarr; All Users.<\/li>\n<li>Click Edit on your new user and simply click Update Profile at the bottom. This allows WordPress to clean up the metadata and finalize the account creation.<\/li>\n<\/ol><p>Manually creating a user via phpMyAdmin is a powerful way to bypass login issues. Once you have regained access, you can manage your other users or reset lost passwords directly from the WordPress dashboard.<\/p><p>&nbsp;<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p><strong>Notes<\/strong><\/p>\n<ul>\n<li><strong>Prefixes<\/strong>: If your database uses a custom prefix (e.g., xyz_), ensure you use it for the table names and the meta_key fields (e.g., xyz_capabilities).<\/li>\n<li><strong>Security<\/strong>: After regaining access, it is a good practice to delete any temporary users you created to keep your database clean.<\/li>\n<li><strong>Backups<\/strong>: Always back up your database before making manual changes in phpMyAdmin.<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Regain access to your website by manually creating a new administrator account directly in the WordPress database using phpMyAdmin.<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[179],"tags":[],"class_list":["post-10476","post","type-post","status-publish","format-standard","hentry","category-wordpress-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/how-to-create-a-wordpress-admin-user-via-phpmyadmin","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=10476"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10476\/revisions"}],"predecessor-version":[{"id":10484,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10476\/revisions\/10484"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=10476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=10476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=10476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}