When you install WordPress for your blog, you’ll be asked to pick out your user name and password which you will use everytime you need to log into your WordPress dashboard. Changing your password is an easy task but changing your user name is not as straightforward.
As a WordPress developer, I’ve seen so many new bloggers pick “admin” as their user name – I strongly advise against this! If you feel that you user name is not secure enough (after the fact), you are able to change through one of two methods that I will be discussing with you today.
Method #1 – Change your User Name with a Plugin
This is by far the easiest way to go…you’ll need a plugin called “Username Changer“. Don’t worry – for those who try to limit the amount of plugins you have running, once you have changed your username, you can quickly delete the plugin along with all its data.
After you install and activate the plugin, click on “Users” and then “Username Changer”.
Next, from the drop-down menu, choose the user name you want to change. Right below that, type out your new user name. Click “Save Changes” and you’re done!
Method #2 – Changing your User Name via phpMyAdmin
If you’re unable to use a plugin because you can’t log into your WordPress dashboard (if you lost your password and don’t know which email address you have on file), you’ll need to use another technique. It is a more advanced method but doable nonetheless.
Log into your cPanel, scroll down until you see “Databases”. Click on phpMyAdmin.
Here you will see your database name (in my case, I have a crap load of them). It usually contains wrdp as part of the database name. Click on your database name.
Not sure which one is your database name? See “What If I Don’t Know My Database Name?” below.
This will open up a bunch of stuff that may look a little scary. Scroll down and click on wp_users
Next, click on “Edit”.
Under user_login, you can change your user name. In this case I could change “chantal” to whatever I want. Once you’re done, click “GO” and that’s it!
What if I don’t know my Database Name?
If you’re like me and you have too many database names, there is a way to find out the name of the database you need to change the user. Go to your file manager in your cPanel.
Open up the root directory of your website.
Locate the wp-config file and upload it to your desktop.
Open it with Notepad and your database name will be listed under DB_NAME. So in my case, the database name is “chantal_wrdp88”.
I’m hoping you opted for the first method because it is way easier and much quicker but if you absolutely had to use the second method, I hope you were successful. Let me know how you made out down below and please share this tutorial if you found it helpful!