Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

Change the WordPress password

Change the WordPress password

Have you lost the access password of your WordPress and you need to access? To change the password you must access the login page of your content manager (usually hosted under the URL https://www.midominio.com/wp-admin/) and follow the instructions on the "Forgot your password?" Button.

This button will take you to a form where you must enter your email address with which you signed up or that you have assigned to your WordPress user account.

If, for whatever reason, you do not remember this address or you get an error message, you can recover access by following the second part of this manual.

Change the password of my WordPress without access to the mail

To recover the access without having the email, you can do it by modifying the database of your WordPress directly.

For this, you will need several things:

  • An FTP account with write access (RW)
  • The connection data of WordPress to your database
  • A database manager or phpMyAdmin (usually hosted under the URL http://www.mydomain.com/phpmyadmin)

If you do not have access to your FTP account, follow this manual: https://www.swhosting.com/en/comunidad/manual/gestion-de-cuenta-ftp

Access with the Filezilla program to the FTP account that you have created. Inside the "/data/web/" folder of your FTP, look for the file "wp-config.php" and right-click on the file to select the View/Edit option.

The file "wp-config.php" will open, where you will be able to see, among other parameters, your username and password of the database. Find the following lines:

...
define ('DB_USER', 'name_of_user_of_the_database');
...
define ('DB_PASSWORD', 'password_of_user_of_the_base_of_data');
...

Now that you have the access data to your database (which uses the same WordPress), go to "http://www.mydomain.com/phpmyadmin" (or use your favorite database manager), and in username and password, put the data you have seen in the previous point.

In the column on the left, look for the "wp_users" table, and click Edit as shown in the image:

Now we just need to edit the "user_pass" field. Type the password you want in it. It is important that it is safe and, above all, you can remember it.

Make sure that "MD5" is selected in the Function field.

Finally, click on apply. If the password change is successful, it should appear as the following image:

Go back to the administration page of your WordPress and confirm that you can now enter. If not, repeat the process making sure to follow all the steps.

You can now access your Wordpress again with your new password!

Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.