For the sake of WordPress security, it is necessary to change admin password and username after the first-time login, preventing unauthorized access effectively. To carry out this practice, you can either utilize your WordPress admin or make use of the phpMyAdmin. Here, we’d like to introduce both of these two methods for the modification of WordPress password and username in the following.
Change WordPress Password
A really strong and risk-free password needs to be long, hard-to-remember and complicated, containing random letters, numbers and symbols. Never utilize your birthday number, phone number, name characters as the admin password.
Besides, it is highly recommended to change the password regularly. Personally, we suggest you to make the modification at least once a month.
Change WordPress Password using Admin
After logging into your WordPress administrative panel, you need to navigate to the Users tab and click the All Users button. Here, you can see a list of users that can manage your website for some aspects, such as administrator, author, contributor and editor.
Then, you should find your username, hover the mouse over it and click the Edit button. In the next page, you can find an About Yourself area by scrolling down to the bottom part. Here, you can enter your new password and repeat it one more time. Note that the password should be at least 7 characters, and there is a Strength Indicator telling you how strong your password is.
Change WordPress Password using phpMyAdmin
You need to enter your control panel and click the phpMyAdmin icon under the Database section. In the next page, you can find a list of databases. Simply click the one that you are used for your WordPress installation. If you have no idea which is the right one, you can open the wp-config file using FTP, from which you can be presented with the database name.
Next, you should click the wp_user table. It is possible that you are not the using the “wp” prefix. If so, you need to replace “wp” with your current prefix.
After clicking that tab, you can find a Browse button from the navigation bar of right hand. Simply click it.
Here, you can click an edit button with a pencil icon. Then, you’ll be presented with the following screenshot.
From of the listed columns, you can find a user_pass option, which is used to store your WordPress password. Here, you must find that the value filed contains some irregular characters that are obviously not the password. This is because WordPress utilizes the MD5 function to replace the plain text of the real password for the better security. Therefore, before entering the new password into the user_pass value filed, you have to transfer it using a MD5 tool, such as this one.
Do not forget to click the Go button after the new password is entered.
Change WordPress Username
It is a common sense that the default WordPress username is “admin”. Therefore, if you do not change it, hackers simply half succeed in accessing your site, as they only need to figure out your password. This is really dangerous.
In this case, changing your WordPress username is the first thing to do after your WordPress site is set up already.
Change WordPress Username using Admin
WordPress admin disallows you to change the username directly. Here, you have to create a new username with the administrator role, and replace the “admin” one with it.
To do this, you can go to the Users tab and click the Add New button. Here, you can create a new user with a secure username and a strong password. Note that the email address needs to be a new one, but not the one for your old “admin” user. Besides, the role needs to be assigned with the Administrator option.
Next, you need to logout, and login again with your new username. Then, you can delete the default “admin” username.
In the next page, you are required to determine what should be done with the posts and links assigned to the old username. Here, you need to choose the second option – attribute all the things to your new user. Then, click the Confirm Deletion button.
Change WordPress Username using phpMyAdmin
For this method, you can carry out the same steps as you change your password using phpMyAdmin. The only difference is that after you clicking the pencil icon for editing wp_users table, you need to change the value of user_login, replacing the default value of “admin” with any other username you want.