Knowledge Base
MilesWeb / WordPress FAQ

How To Change The Admin Username In WordPress?

Approx. read time : 3 min

When you create a WordPress website, the default ‘admin’ username makes your website vulnerable to hacking attacks. As WordPress is one of the most popular blogging platforms around the world, it is also one of the most targeted platforms for the hackers therefore, it is important to do all that you can for ensuring the security  of your WordPress website. Changing the default ‘admin’ username in WordPress also reduces the possibilities of brute-force attacks.

Below mentioned are 3 ways to change the WordPress admin username:

#1 Manually Change The Admin Username

  1. Add new user : Login to your WordPress Dashboard. On the left-hand side menu, hover on the option ‘Users’ and click on ‘Add New’
  2. Save new user : Fill in all the user information. Add a username other than admin. In the ‘Role’ option there will be a drop-down menu, from there choose ‘Administrator’ so that the new user gets the admin rights. Now click on ‘Add New User’.
  3. Logout from the admin account.
  4. Login to the new user account that you created.
  5. Delete the default admin user that was created when you set up your website. View ‘All Users’ in the ‘Users’ section, hover on the default ‘admin’ account and click on ‘Delete’.
  6. Confirm the deletion : In order to save all the contents that have been previously created with the old admin account, you have to tick on the option – ‘Attribute all content to’ and from the drop-down menu select the new admin username that you created. Finally, click on ‘Confirm Deletion’

After following the steps mentioned above, you will no longer see the old admin account in your users list. Now the new admin account is the one that you have created.

#2 Use Plugins To Change The Admin Username

You can also make use of some WordPress plugins for changing the WordPress admin username. You can use the plugins like – Username Changer, Admin Username Changer, Admin Renamer extended etc. With the use of a plugin all you have to do is enter the new username for replacing the old one.

#3 Change The WordPress Admin Username Through phpMyAdmin

  1. Login to cPanel and click on ‘phpMyAdmin’ in the ‘Databases’ section.
  2. Locate the WordPress database from the list present on the left hand side. In case you are not sure which database file it is, you can check the ‘wp-config.php’ file that is present in the root folder of WordPress and look for the line mentioned below:

define(‘DB_NAME’, ‘user_wp448’);

  1. When you select your WordPress database, a list of its tables will be displayed. Select the ‘_users’ table from the left hand side menu.
  2. A list of registered users on your website will be displayed. Search for the admin username and click on ‘Edit’.
  3. The fields of the admin username will be displayed. Look for the ‘user_login’ field, replace the value of this field to new WordPress login name and click on ‘Go’ option present at the bottom.

The process of changing the admin username is complete and now you can successfully login with your new username.

 

My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.

Trusted By Thousands of Clients & Big Businesses

We highly appreciate the kind and stellar feedback we receive from our customers. Delivering the best is our goal! MilesWeb is rated Excellent out of 5 based on reviews. Read more reviews.

Excellent
Based on reviews
2 hours ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
4 hours ago
Milesweb is superb Hosting pro...
Milesweb is superb Hosting provider ever, their Support team is amazing!!!...
Abhishek Singh
15 hours ago
Great support in great timing...
We need urgent assistance on changes in a primary domain on our client's Cpanel accounts and reached...
Riyaju Deen
21 hours ago
Best Website Hosting platform ...
I was new on MilesWeb. And needed help on multiple areas from setting up to getting started with cre...
Harshada
1 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
1 days ago
the team is very supportive th...
the team is very supportive though at times effort needs to be made to make understand the problem s...
Suree Sharma
1 days ago
I am using miles web for 3plus...
I am using miles web for 3plus years, very quick and perfect support by the team, they helped me man...
Sri Raghav
2 days ago
The service is good...
The service is good. They are answering with patience and doing the needful as soon as possible....
MR
2 days ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
3 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
4 days ago
positively helped me with find...
positively helped me with finding insecure content on my website causing SSL to not work properly on...
Thaviraj Junglee
4 days ago
Exceptional support, Truly Pra...
I had opted for the basic wordpress hosting plan as I intended to experiment with various plug-ins. ...
Aseem Chandna