The safest way to change your admin username
The safest method is to create a new admin account with the username you want, then delete the old one. WordPress does not let you rename an existing account directly — if you try to change the username field in your profile, it will not stick. Creating a fresh account and removing the old one avoids the risk of breaking site functions that depend on the original account.
You will need access to your WordPress dashboard and a way to log in while you make the switch. If you are locked out, you will need access to your hosting control panel or a database tool like phpMyAdmin. Most people can do this from the dashboard alone in about five minutes.
Key Takeaways
- WordPress does not let you change a username on an existing account — you must create a new admin account and delete the old one.
- The safest order is: create the new account, transfer ownership of posts and pages, then delete the old account from the Users menu.
- If you are locked out of the dashboard, you can change the username directly in the database using phpMyAdmin or your hosting control panel.
- After you delete the old account, check that your site still loads and that you can log in with the new username before considering the task complete.
Creating a new admin account in the dashboard
Log in to your WordPress dashboard with your current admin account. Go to Users in the left sidebar, then click Add New. Enter the new username you want in the Username field — this is the name you will type when you log in. Fill in an email address, a strong password, and set the role to Administrator. Click Add New User.
WordPress will send a confirmation email to the address you entered. You do not need to click the link in that email — the account is active when ready. Log out of your current account and log back in using the new username and password to confirm it works.
Transferring posts and pages to the new account
Any posts, pages, or custom content assigned to your old admin account should be reassigned to the new one before you delete the old account. Go to Users and click the old username. Scroll down to the section that says "If you delete this user, what should happen to the content owned by this user?" Select Attribute all content to, then choose the new admin account from the dropdown. This transfers ownership of everything the old account created.
If you have a large site with many posts, this step prevents orphaned content or broken author links. It takes a few seconds and is worth doing even if you think the old account did not create much.
Deleting the old admin account
Go to Users in the dashboard. Find the old admin account in the list. Click Delete under the username. WordPress will ask you to confirm and will show you the content reassignment option again. Make sure the new admin account is selected, then click Confirm Deletion. The old account is now gone.
After deletion, your site will still work normally. All posts, pages, and settings remain intact — only the login account is removed. Log out and log back in with the new username to make sure everything is working.
Changing the username if you are locked out
If you cannot access the WordPress dashboard, you can change the username directly in the database. Log in to your hosting control panel and find phpMyAdmin, or ask your host how to access the database. Look for the table called wp_users (or your custom prefix followed by _users). Find the row with your admin account and look for the user_login column. Click Edit and change the value to your new username, then click Go or Save.
After you make the change, you should be able to log in to WordPress with the new username and your original password. If you are not comfortable with the database, contact your hosting support — they can make this change for you in a few minutes.
What to check after you change the username
Load your site's home page in a browser and make sure it displays normally. Check that you can still log in to the dashboard with the new username. Look at a few posts or pages to confirm they display correctly and show the right author name. If you use any plugins that reference the old username, you may need to update their settings — check the plugin documentation or settings panel.
Some sites use the old username in custom code or theme files. If you see broken links or missing content after the change, search your theme files or custom code for the old username and update it to the new one. Most sites will work without any additional changes.
Why WordPress does not let you rename directly
The username is used as a unique identifier throughout WordPress — in the database, in post metadata, in user permissions, and in some plugin settings. Changing it in place would require updating dozens of database tables at once, and if any of those updates failed partway through, your site could break. Creating a new account and deleting the old one is slower but safer because each step can be undone.
If you change the username in the database directly, WordPress treats it as a new account with the same ID number, which preserves all the connections. That is why the database method works when the dashboard method does not.
Frequently Asked Questions
Will changing my username log me out?
Yes. After you delete the old account, you will be logged out automatically. Log back in using the new username and password. This is normal and expected — it usually takes less than a minute.
Can I change the username back if I change my mind?
Yes. You can create another new account with the old username and repeat the process. WordPress does not prevent you from reusing old usernames, so you can switch back and forth if needed.
What if I have multiple admin accounts?
Repeat the process for each one. Create a new account, transfer its content, and delete the old one. You can do this one at a time without affecting the others. Make sure you keep at least one working admin account at all times so you do not lock yourself out.
Does changing the username affect my posts or pages?
No. Your posts and pages stay exactly the same. Only the login name changes. The author name displayed on your site will update automatically if you set it to show the username, but the content itself is not affected.
What if I forget the password for the new account?
Go to the WordPress login page and click Lost your password? Enter the new username or the email address you used when you created the account. WordPress will send a password reset link to that email. Click the link and set a new password.