Tutorial: How Can Change My WordPress Password?

If you have a WP website, you have an account with which you can log in to WordPress. And it is important to change a strong WordPress password. And this can also be reset with some regularity! That way you keep your website safe and any hackers out.

Change The WordPress password:

You can change your password in WordPress in several ways. First, the situation that you just remember your current password (and therefore have not forgotten your password). The best thing to do is log in to WordPress and go to Users> Your profile in the wp-admin. When you scroll down you will see the screen below:

When you click on “Generate password”, WordPress will create a (very strong) password for you. This will look something like the image below:

You can of course also enter your own password here. WordPress will give an indication of how strong your chosen password is. When you are finished, scroll down and click on ” Update Profile “.

Forgot your password?

If you have forgotten your current password, you can use the “Forgot password” function of WordPress. To do this, click on the link at the bottom of the login screen (see also image).

When you click on “Forgot your password?” click then you only have to enter your username. Don’t you remember your username anymore? Enter your e-mail address. You will then receive an email with a link that allows you to reset your password. You will also find your WordPress username in this email.

After resetting your password, you can use the new password to log in to WordPress in the normal way.

No e-mail? Then Change Password via Database:

Do you not receive an e-mail when you try to reset your password, or do you no longer have access to your e-mail address? Then it becomes more difficult to retrieve or change your password and / or username. Yet it is certainly not impossible and there are a number of options!

1. Via MySQL database
When you have access to the MySQL database of your WordPress website (via phpMyAdmin for example), log in via your control panel and look at the wp_users table. Here you will find at least all usernames. You can also change the e-mail address associated with a specific user account here. You can then change this to an e-mail address to which you do have access.

To do this, log in to PHPMyAdmin via the control panel of your website and then click on databases. Then select the correct database and search the table with the table that ends in ‘_users’ and click on ‘Explore.’

Choose your username from the list of accounts and choose “Change.” In the screen that appears, look for the ‘users_pass’ column. Under ‘Value’ you should see a series with numbers and/or letters. Delete this and enter a new password. Click on the dropdown menu in the ‘Function.’ and select ‘MD5’ there. Finally, click on ‘Start’ at the bottom of the page. You should now be able to log in again with your new password.

2. Via Emergency Password Reset Script
Another possibility is based on the Emergency Password Reset Script that you can find at codex.WordPress.org.

You must save this script via FTP as a .php file in the root of your website and then execute it in a web browser. Enter your username and your new password and click on ‘Update Options.’ Note: delete the file immediately if you can log in again! If you don’t, everyone else can also change your password and log in to your website!

3. Via FTP
The last option is to change your password via FTP. Log in to your server via an FTP client. Locate the functions.php file of your theme (in the \ wp-config \ themes \ directory) and back it up. Add this line in the original file after the first <? Php tag:


Enter your new password at the ‘password’ location. The ‘1’ in the code stands for the number of a user in your database where the default administrator is always 1.

Save the modified functions.php and you can then log in with the password you entered in the code. If you have successfully logged in, upload the original functions.php again!