How to Change Username of WordPress website

How to Change Username of WordPress website

Have you ever tried to change username of WordPress based website? If you have tried it by going to your profile page in WordPress dashboard, you will find a message saying “usernames cannot be changed.” Recently, I encountered this when I had a discussion with someone on blog’s security. I always recommend not to use default admin username for a blog. It makes it easier to Bruteforce the WordPress password because the username is already known to the attacker. After understanding my point, the other person instantly asked me to change the username of the WordPress user. I suggested him to check the profile section but there was no option and I had an unsolved question.

As I am a developer, I can do most of the things from code and database. I knew that we can do this from the database. In this article, I am writing the how you can change the username of WordPress user.

In this tutorial, I am showing the way to do this by using CPanel and PHPMyAdmin. In case your hosting does not offer you CPanel, you can comment and ask me for further help.

Also read: Add Admin Account in WordPress Only From FTP
Also Read: How to Reset WordPress Password Through FTP

Login to your Cpanel and find the database section. Here click on PHPMyAdmin option.

Open PHPMyAdmin

Now select the database of your blog from the left sidebar. In your database, select table wp_users. Basically, it is users table and most of the people select wp_ prefix. If you couldn’t find the wp_users table, try finding users table of a table name users with a different prefix.

How to Change Username of WordPress website

Now click on edit in front of the row that has user_login value as admin. Here I am assuming that you want to change the username of admin. If you have some other username tp change, try finding that row.

How to Change Username of WordPress website

Change the user_login value to whatever you want. Change it to a name that is hard to guess. Do not try to change the value in the password field. WordPress saves the encrypted password. If you change anything here, you wouldn’t be able to login with your password unless you reset it.

Now go to your website and login with this new username and password.

Also see: How to Speed up WordPress Blog

Easier way of changing the username in WordPress

While this method is fine, I was suggested an easier way that needs no access to CPanel. You can create a new user account in your WordPress website. Then give administrator privileges to this newly created account. Log in with this new user account and deleted the old one having the username as “admin.”  While deleting the old account, assign all posts to your new username.

Final Words

There could be many reasons why you wish to change the username of an account. I have covered two different ways to achieve the same. Any of these ways will the same. If you still have any confusion or want to ask something, you can always contact me. You can either comment below or connect me on different social media platforms.


Tags: | |

Deepanker Verma is the founder of Techlomedia. He is a tech blogger, developer and gadget freak.

Similar Articles


Leave a comment

Comment policy: We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted.

2020 UseThisTip | Part of Techlomedia Internet Pvt Ltd Developed By Deepanker