Recover the WordPress installation password
It can happen that you lose your WordPress password. There are several methods to recover the password. In this article, we discuss the options.
Solution 1: Request the password via email
Via the WordPress login page (domein.nl/wp-admin) it is possible to request the password via "Forgot password".
You can request a new password by entering your WordPress username or email address. After this, you will receive an email with a temporary password, which you can then change later after logging in.
Solution 2: Change the password via PhpMyAdmin
It is possible to change the password via the database.
- Go to PHPMyAdmin via the mijn.host control panel (https://mijn.host/kb/hoe-kan-ik-inloggen-in-phpmyadmin/)
- Select the database of the WordPress installation
- Look for the table that ends in: “_users” and click on Browse.
- Choose the username of the account you want to recover and click on “Edit”.
- We can now change the “users_pass” column to a new password.
- Under the “Function” column, we set this to MD5.
- Now press Go
- You can now log in with the new password
Solution 3: Change the password via Filemanager
- Go to File Manager via DirectAdmin.
- To change the password, look for the functions.php file. This is a file that you can find in the theme folder:
uw-domein.nl/wp-content/themes/naamvanjethema/functions.php
- Edit the file and add the following code after the first
wp_set_password(‘nieuwwachtwoord’,1);
The word between the parentheses is your new password. The 1 after the comma relates to the ID of the user in the database.
Save the changes. The new password is now available.
Still have questions? Get in touch.