How To Change The Admin Username In WordPress

The default WordPress username admin poses a security risk to your WordPress site. Learn how to change the admin username in WordPress for improved security.

Learn How To Use WordPressFor better security, avoid setting up a WordPress site using the user name “admin”.

This is the default installation username for WordPress and one of the leading causes of brute force attacks on a WordPress site.

How To Change Your Admin User Name In WordPress To Another Username

In this tutorial, you will learn how to change your WordPress admin username to a more secure user name.

Changing Your Admin Username In WordPress To Another User Name

Generally, on a new WordPress site installation, the first registered user is also the admin.

Having the default WordPress username admin is not recommended, as it puts your WordPress site at risk of being attacked by hackers or botnets …

Changing Your WP Admin Username To A Different User Name

Let’s change the WordPress admin user name from ‘admin’ to a more secure user name.

There are several ways to access your “Profile” section and view your username details after logging into your administration area:

Select the Users > All Users section in the main menu …

Changing Your WP Admin User Name

Click either on the username, or click on the Edit link when hovering over the username with your mouse …

How To Change Your WP Username From Admin To A Different Username

Or, select Edit My Profile from the “Howdy, User” drop down menu at the top-right hand corner of your Dashboard …

How To Change Your Admin User Name In WordPress

You can also access your “Profile” screen by selecting Users > Your Profile from the main menu.

You will discover when you get into the Profile area that you can’t change usernames inside your Dashboard …

Changing Your WordPress Admin Username To A Different Username

So, how do you modify this admin username?

If your WordPress admin login is “admin,” here’s the easiest way to change this without accessing your server:

Click Add New to add a new user …

How To Change Your Admin User Name In WordPress To A More Secure User Name

Next, create a more secure user name, and assign your new user account the role of “Administrator”. Save your changes to update your settings …

How To Change Your WP User Name From Admin To Another Username

You will now see a new admin user with a new user name, plus the original user name (i.e. “admin”) …

Changing Your Admin User Name In WordPress To Another User Name

Log out of your WordPress admin area …

Changing Your WP Admin User Name To A Different User Name

Log in with the new admin details for the user you have just created …

How To Change Your WP Username From Admin To A More Secure Username

You should see your new username details in the “Howdy, User” screen …

Changing Your WP Username From Admin To Another User Name

Click on Users > All Users in the main menu …

How To Change Your WP Admin Username

You can now delete your old administrator account …

Changing Your WordPress User Name From Admin To A More Secure User Name

Select the option to assign all content owned by the old admin account and reassigned it to your new admin, then confirm the deletion of the old user account …

How To Change Your WP User Name From Admin To A More Secure Username

You are now left with only the new Admin account, effectively changing your WordPress admin user name …

Changing Your Admin User Name In WordPress

Info

Although this tutorial is mostly intended for non-technical WordPress users, let’s go one step further and show you how to change your WordPress username inside the WordPress database.

All you need is access to your server’s control panel.

Practical Tip

help To learn how to search and replace content in your WordPress database without touching code or editing WordPress database tables, see the tutorial below:

redarrow How To Do A Global Search And Replace In WordPress

How To Change Your User Name Inside The WordPress Database

For the example below, the server uses the cPanel management application …

How To Change Your Admin User Name In WordPress To Another User Name

cPanel

Log into your server control panel …

How To Change Your WP User Name From Admin To A More Secure Username

cPanel administration area

Find the “Databases” section and click on phpMyAdmin

Changing Your WordPress User Name From Admin To A Different Username

phpMyAdmin

Click on your WP database.

Note: If you have a number of databases set up on your domain, make sure you select the right one …

How To Change Your WordPress Admin User Name

phpMyAdmin databases

Don’t panic when you see the complicated-looking screen.

Click on wp_users in the “Table” column on the left-hand side …

Changing Your WP Admin Username

The username is located in the “user login” column. To edit the field just double-click on the text you want to change …

Changing Your Admin User Name In WordPress To Another User Name

Type in the new username and click outside the edit box to update the field with a new username …

Changing Your WP Admin User Name

Log out of your server when you’re finished and go back to your WordPress site. You will probably find that your session has expired. If so, log in again with your new administration login credentials …

How To Change Your Admin User Name In WordPress

You will see that the username is now updated. However, it will probably still display the previous “nickname” …

How To Change Your Admin User Name In WordPress

To edit your “nickname”, go to your Users section and click the Edit link below your username …

How To Change Your WP User Name From Admin To A Different Username

You can also reach your Profile section if you click on the Edit My Profile link in the “Howdy, User” box …

Changing Your WP Admin Username To Another Username

Select a new name to display publicly from the drop down menu …

How To Change Your WP Admin User Name To A More Secure Username

Tip

Note: You can also create a new Nickname in the Nickname field and it will then be available for selection in the Display name publicly as dropdown menu …

Changing Your WordPress Username From Admin To A Different User Name

Click Update Profile to save your new settings …

How To Change Your Admin User Name In WordPress

You admin area is now updated with a new username and nickname …

Changing Your Admin User Name In WordPress To Another Username

Congratulations! Now you know how to change the WordPress admin user name on your website or blog.

How To Change Your Admin Username In WordPress To A More Secure Username

***

"This is an awesome training series. I have a pretty good understanding of WordPress already, but this is helping me to move somewhere from intermediate to advanced user!" - Kim Lednum

Disclaimer: This site is not directly associated with WordPress, Automattic, or any WordPress-related products mentioned on this website. We may receive financial benefits from sales of any third-party products mentioned on our website. All product images are the copyright of their respective owners and have been used only for illustrative or training purposes.

***

Did you enjoy this post? Feel free to use the social buttons below to share this tutorial with others.

Author: Martin Aranovitch

WPCompendium.org provides hundreds of FREE WordPress tutorials for beginners. Our detailed step-by-step tutorials will save you money and teach you how to start, manage, and grow a website or blog using WordPress that puts you in complete control and delivers results with no coding skills required!