Why change it?
A username is the name you type to log in. Many people leave it as "admin". Attackers know this and try it first. Then they guess passwords. If your username is something else, they have one more thing to guess. So a unique username makes your site a little safer.
Before you start, take a backup of your site and database. A database is the organized store where WordPress keeps all your posts and settings.
Way 1: Make a new administrator (easiest)
You create a new admin account, then delete the old one.
- Log in to your WordPress dashboard.
- Go to Users, then Add New User.
- Type the new username, an email you have not used for another user, and a strong password.
- Set the Role to Administrator.
- Click Add New User.
- Log out. Log in again with the new account.
- Go to Users, then All Users.
- Point at the old "admin" user and click Delete.
- Choose Attribute all content to and pick your new user. This keeps your posts.
- Click Confirm Deletion.
Way 2: Use a plugin
A plugin is an add-on for WordPress. Some plugins are made just to change usernames.
- Go to Plugins, then Add New.
- Search for a plugin that changes usernames, then click Install Now and Activate.
- Open the plugin from the menu, find your user, and type the new name.
- Click the save button, then log in again.
Way 3: Use phpMyAdmin
phpMyAdmin is a tool for looking at and changing your database. Be careful here. A wrong change can lock you out.
- Log in to your hosting control panel and open phpMyAdmin.
- Click your WordPress database on the left.
- Click the table
wp_users. Your table prefix may be different, so look for a name that ends inusers. - Click Edit next to your user.
- Change the
user_loginvalue to the new username. You can changeuser_nicenametoo. - Click Go to save.
Then log in with the new name and your old password.
Quick recap
- A hard-to-guess username helps protect your login.
- Easiest way: create a new administrator and delete the old one, keeping the content.
- Or use a plugin, or edit
user_loginin phpMyAdmin. - Back up first.