HomeTechnologyIT SecurityHow To Change WordPress Username For Security Reasons

How To Change WordPress Username For Security Reasons

This the first and simplest way to help protect your site from hackers is to choose a custom name for your WordPress admin account. Yes, you can update and change your WordPress username for better security. In other hand to help prevent unauthorized access to your WordPress admin dashboard. Well then this article is for you. In this article, I’ll show you different methods to change your WordPress username.

Change WordPress Admin Username
You can not Change WordPress Username Directly From Admin Dashboard

You can see, We can not change your username from WordPress admin dashboard. So what will we do. So first you need to find your database name.

Finding Your Database Name

If we want to make changes in database, than we will need to know database name. We can do this by checking wp-config.php file in the root of WordPress installation folder.

In cPanel, using File Manager go your site folder. Select the wp-config.php file and click the Edit button at the top of the page. Look for the code similar to the example below:

Change WordPress Username For Better Security
Checking wp-config.php file in the root of WordPress installation folder

In above picture example where your_database is written. Here our database name will be listed.  Once you know your database’s name you can go ahead and change its tables.

Change WordPress Username Using phpMyAdmin

Now we know the database name. We will make direct changes to our WordPress database. In cPanel, click the phpMyAdmin button under Databases on the homepage.

Change WordPress Username For Better Security
In cPanel looking for phpMyAdmin to make changes in Database

Next thing you need to do is select the database that your blog is hosted in.

How To Change WordPress Username
Selecting the database that our blog is hosted in

Select your database from the list on the left. Next, locate the wp_users table. If your table has another prefix that doesn’t matter. Just click on Users table.

How To Change WordPress Username
In our database we locating the wp_users table

Find your Admin username on the list. Double Click for Edit. Change the user_login value to whatever you want and hardly to guess. For example you can replace ‘admin’ to ‘cz2012’. Remember don’t change anything except this. You can change all other things directly from WordPress admin dashboard.

How To Change WordPress Username
Find the Admin username on the list and Change the user_login value

Once you have made these changes, than you are done and you can now use your new username to log in.

I hope this article helped you learn how to change your WordPress username. If you face any difficulty than leave it on comment.  If you liked the article than share it.

Thank You

 

 

Ankit Bhandari
Ankit Bhandarihttps://www.bhandariankit.com
My mission is to empower people to take control of their health and fitness by following a healthy, enjoyable lifestyle that not only gives them the body they’ve always wanted, but enables them to live a long, vital, disease-free life.
RELATED ARTICLES

Leave a Reply

Most Popular

Recent Comments