Skip to content
mybox Help Center

Help sections

  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online
mybox.com All services operational
/

Language

  • English
  • Română
  • mybox panel
  • Webmail
Start free
/
  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online
  • Help Center
  • mybox.com
  • English
  • Română
All services operational Start free
  1. Help Center
  2. Security & SSL
  3. Account & Password Security
How-to Security & SSL

How to Change the Administrator Username in WordPress

Updated June 7, 2026 2 min read
On this page
  1. Access phpMyAdmin
  2. Locate the Users Table
  3. Edit the User Account
  4. Change the Username
  5. Save the Changes
  6. Verify the New Username
  7. Additional Security Recommendations
  8. Summary

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 admin username), you can do so directly through the database using phpMyAdmin.

Changing the default administrator username is considered a good security practice, as automated attacks often target commonly used usernames such as admin.

Important

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.

Access phpMyAdmin

  1. Log in to the mybox Panel.
  2. Navigate to:
Databases
  1. Click:
phpMyAdmin
  1. Log in using the credentials associated with your WordPress database.

If you do not know the database credentials, you can find them in the wp-config.php file located in the root directory of your WordPress installation.

Locate the Users Table

After logging in to phpMyAdmin:

  1. Select your WordPress database from the menu on the left.
  2. Locate the table named:
wp_users

Note: If your website uses a custom table prefix, the table name may differ. For example:

myprefix_users
  1. Click the users table to display the list of WordPress accounts.

Edit the User Account

  1. Find the administrator account you want to modify.
  2. Click:
Edit

next to the selected user.

Change the Username

Locate the field:

user_login

Replace the current username with your preferred username.

Example:

admin

can be changed to:

johnsmith

or any other unique username of your choice.

Save the Changes

After updating the value:

  1. Scroll to the bottom of the page.
  2. Click:
Execute

or

Go

depending on your phpMyAdmin version.

The username change will take effect immediately.

Verify the New Username

After saving the changes:

  1. Log out of the WordPress administration panel if you are currently logged in.
  2. Navigate to:
https://yourdomain.com/wp-admin
  1. Log in using:
    • Your new username.
    • The existing password.

Your password and permissions remain unchanged.

Additional Security Recommendations

For better WordPress security, consider:

  • Avoiding usernames such as admin, administrator, or test.
  • Using a strong password.
  • Enabling two-factor authentication (2FA).
  • Keeping WordPress, themes, and plugins updated.
  • Limiting login attempts.

Summary

To change a WordPress administrator username:

  1. Open phpMyAdmin from the mybox Panel.
  2. Select your WordPress database.
  3. Open the wp_users table.
  4. Edit the desired user account.
  5. Change the value of the user_login field.
  6. Save the changes.

This is a simple way to improve the security of your WordPress website, especially if it still uses a commonly targeted username such as admin.

Was this article helpful?

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.

Helpdesk 24/7 Open a ticket in the mybox panel mybox panel Log in and manage your services

On this page

  1. Access phpMyAdmin
  2. Locate the Users Table
  3. Edit the User Account
  4. Change the Username
  5. Save the Changes
  6. Verify the New Username
  7. Additional Security Recommendations
  8. Summary

Related articles

All in Account & Password Security
How-to Account & Password Security FTP client – How to take care of security? When using FTP clients to manage your website files, it is important to follow security best practices to protect your hosting account… 2 min read How-to Account & Login Management How do I set up 2FA in the mybox panel? Two-factor authentication (2FA) adds a second verification step when logging in to the mybox panel. After entering your password, the panel asks… 1 min read How-to WebMail mail.mybox.com How do I set up two-step verification in Webmail? Security is a priority today, and two-step verification, which requires not only knowing and providing a password, but also a one-time code,… 2 min read
mybox

Modular web hosting – free out of the box, modular to grow.

Help sections

  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online

mybox

  • mybox.com
  • mybox panel
  • Webmail
  • Helpdesk 24/7
© 2026 mybox 1,680 articles