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.
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:
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.
Next thing you need to do is select the database that your 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.
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.
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.