How to Manually Rename the WordPress Administrator Account

Last updated on June 25th, 2020 by Robert Abela. Filed under WordPress Security Tutorials & Tips

There are several reasons why you would want to rename the default WordPress administrator account that you are using. One of the most common reasons is to improve the security of your WordPress blog or website and protect it from targeted WordPress brute force attacks. In this easy to follow WordPress tutorial we will explain how to rename the default WordPress administrator account using phpMyAdmin, a web based MySQL server administration interface.

Rename WordPress Administrator Account with phpMyAdmin

  1. Login to your hosting provider CPanel and Click on phpMyAdmin icon from the Databases section.
  2. Select the WordPress database and navigate to the wp_users table in the Structure node as highlighted below by clicking on it. If you do not know the name of your WordPress database, you can find it in the wp-config.php file in the root of your WordPress blog or website.

wp_users table in WordPress database

  1. As you can see from the below screenshot, in this installation we have only 1 username and has an “admin” username. Click on the Edit icon (highlighted in the below screenshot) to modify the user’s properties.

Edit icon in phpyMyAdmin to edit a row entry in a table

  1. Change the entry in the user_login row to change the username. In the below screenshot example we configured a new username called M4ig81Tr. Click on Go to save the changes.

Modify a WordPress username from phpMyAdmin

Once you are ready, navigate back to your WordPress Administration Screens (wp-admin) and login using the new configured username.


Zogot 18/09/2013

You know, although this may seem like a valuable solution, by just adding ‘?author=1’ to the end of the site_url from WordPress you find the admin username.

I do remember seeing some plugins that will also change the default ID although its often something that many people don’t know.

My 2 cents anyway.

Robert Abela 19/09/2013

Hi Zogot,

You are 100% correct. But keep in mind that this solution is not to protect from user enumeration, that is a different story since there are many other places from where you can discover WordPress usernames. This is good to protect you from non targeted brute force attacks, like the last one we had earlier on this year.

Leave a Reply

Your email address will not be published.

Our other plugins