Recently, one of our users asked us how to reset an administrator password locally? If you use WordPress locally and forget your password, you can not reset it by email. In this tutorial, we will show you how to reset the password of an administrator locally.

reinitialization-dun-word-of-pass-in-local-dadministrateur

Why does the WordPress reset not work locally?

The term " localhost » is used for dto write a local server (work locally), which means that the latter is not available to the public (so is not hosted online).

Many WordPress users install it locally (their computer) to test changes, create websites, try new plugins, and even learn WordPress.

If you haven't tried it yet, check out our tutorial to find out how to install WordPress locally.

Now here is the problem that some beginners may encounter.

If you forgot your WordPress administrator password while working on localhost, then you will not be able to reset it using the reset option that WordPress offers.

The password reset option sends you a link to reset your WordPress password. To send emails, your server must activate the email function.

This function is disabled by default on local servers, which means WordPress will not be able to send the reset email.

But do not worry, there is a way to reset your WordPress password locally.

How to reset a password on WordPress

We are going to use " phpMyAdmin To reset the password to " localhost "(locally). Just access phpMyAdmin by typing the following URL in your browser's address bar:

http://localhost/phpmyadmin/

You will be prompted for your MySQL username and password. By default, the username is " root Without a password.

Once you are logged in, you need to select your database. data WordPress.

select-the-base-of-data-wordpress

Once you select your base data, you will see a list of tables in your database data WordPress. Go ahead and click the navigation link next to the WordPress users table.

selection-of-the-base-of-the-data-users

You will now see the list of users table entries. The number of rows depends on the number of registered users on your WordPress site.

Then you have to click on the link " Edit Next to the administrator user name.

edit-a-user-phpmyadmin-wordpress-tutorial

This will allow you to open a online form where you can modify the information stored in the database for this user.

field-of-word-of-going-to-wordpress-lutilisateurs

Scroll down to the field and type a new password in the column 'value'. After that, you have to select MD5 in the column "function".

Do not forget to save the changes by clicking on " Execute Situated lower down.

That's it, you can now connect to your WordPress site on localhost using the new password.

We hope this tutorial will help you reset an administrator's password on WordPress. If you have any questions, do not hesitate to ask.