{"id":9780,"date":"2026-06-07T14:53:43","date_gmt":"2026-06-07T12:53:43","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9780"},"modified":"2026-06-07T14:53:44","modified_gmt":"2026-06-07T12:53:44","slug":"how-to-change-the-administrator-username-in-wordpress","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/","title":{"rendered":"How to Change the Administrator Username in WordPress"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">If your WordPress website was installed using the automatic installer or if you want to change an existing administrator username (for example, replacing the default <code>admin<\/code> username), you can do so directly through the database using phpMyAdmin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Changing the default administrator username is considered a good security practice, as automated attacks often target commonly used usernames such as <code>admin<\/code>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Important<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before making any changes to your database, create a backup. This allows you to restore your website if a mistake is made during the editing process.<\/p>\n<\/blockquote>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/#Access_phpMyAdmin\" >Access phpMyAdmin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/#Locate_the_Users_Table\" >Locate the Users Table<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/#Edit_the_User_Account\" >Edit the User Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/#Change_the_Username\" >Change the Username<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/#Save_the_Changes\" >Save the Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/#Verify_the_New_Username\" >Verify the New Username<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/#Additional_Security_Recommendations\" >Additional Security Recommendations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-change-the-administrator-username-in-wordpress\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Access_phpMyAdmin\"><\/span>Access phpMyAdmin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the mybox Panel.<\/li>\n\n\n\n<li>Navigate to:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Databases\n<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Click:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>phpMyAdmin\n<\/code><\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Log in using the credentials associated with your WordPress database.<\/li>\n<\/ol>\n\n\n\n<\/div>\n\n<div id=\"mybox-3438744213\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">If you do not know the database credentials, you can find them in the <code>wp-config.php<\/code> file located in the root directory of your WordPress installation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Locate_the_Users_Table\"><\/span>Locate the Users Table<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After logging in to phpMyAdmin:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select your WordPress database from the menu on the left.<\/li>\n\n\n\n<li>Locate the table named:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>wp_users\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Note: If your website uses a custom table prefix, the table name may differ. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>myprefix_users\n<\/code><\/pre>\n<\/blockquote>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Click the users table to display the list of WordPress accounts.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Edit_the_User_Account\"><\/span>Edit the User Account<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Find the administrator account you want to modify.<\/li>\n\n\n\n<li>Click:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Edit\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">next to the selected user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Change_the_Username\"><\/span>Change the Username<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Locate the field:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>user_login\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the current username with your preferred username.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>admin\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">can be changed to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>johnsmith\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or any other unique username of your choice.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Save_the_Changes\"><\/span>Save the Changes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After updating the value:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Scroll to the bottom of the page.<\/li>\n\n\n\n<li>Click:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Execute\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Go\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">depending on your phpMyAdmin version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The username change will take effect immediately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Verify_the_New_Username\"><\/span>Verify the New Username<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After saving the changes:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log out of the WordPress administration panel if you are currently logged in.<\/li>\n\n\n\n<li>Navigate to:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;yourdomain.com\/wp-admin\n<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Log in using:\n<ul class=\"wp-block-list\">\n<li>Your new username.<\/li>\n\n\n\n<li>The existing password.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Your password and permissions remain unchanged.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Additional_Security_Recommendations\"><\/span>Additional Security Recommendations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For better WordPress security, consider:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Avoiding usernames such as <code>admin<\/code>, <code>administrator<\/code>, or <code>test<\/code>.<\/li>\n\n\n\n<li>Using a strong password.<\/li>\n\n\n\n<li>Enabling two-factor authentication (2FA).<\/li>\n\n\n\n<li>Keeping WordPress, themes, and plugins updated.<\/li>\n\n\n\n<li>Limiting login attempts.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To change a WordPress administrator username:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open phpMyAdmin from the mybox Panel.<\/li>\n\n\n\n<li>Select your WordPress database.<\/li>\n\n\n\n<li>Open the <code>wp_users<\/code> table.<\/li>\n\n\n\n<li>Edit the desired user account.<\/li>\n\n\n\n<li>Change the value of the <code>user_login<\/code> field.<\/li>\n\n\n\n<li>Save the changes.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">This is a simple way to improve the security of your WordPress website, especially if it still uses a commonly targeted username such as <code>admin<\/code>.<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[4827,190,389,638,2146,2475,3678,4824,4825,4826],"class_list":["post-9780","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-administrator-account","manual_kb_tag-wordpress","manual_kb_tag-database-backup","manual_kb_tag-wp-config-file","manual_kb_tag-phpmyadmin","manual_kb_tag-wp-admin","manual_kb_tag-change-username","manual_kb_tag-change-administrator-username","manual_kb_tag-wp-users-table","manual_kb_tag-users-table"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9780\/revisions"}],"predecessor-version":[{"id":9781,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/9780\/revisions\/9781"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=9780"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9780"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=9780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}