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.

database
  • 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.
change password
  • Now press Go
  • You can now log in with the new password


Solution 3: Change the password via Filemanager

filemanager
  • Go to File Manager via DirectAdmin.
file manager
  • 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

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.