How to change password in WordPress (4 ways to reset)

How to change password in WordPress – password reset instructions, 4 ways to do it – by administration, lost password function, by phpMyAdmin or functions.php.

How to change password in WordPress (4 ways to reset)

You can easily reset a user’s password in one of the following 4 ways:

1. Resetting password through lost password feature

You can forget your password when working on the website. In this case, click the link

“Lost your password?”

under the login form. You will be asked to enter your login or email registered in your profile. You will receive an automatic message with a link to your email in which you can set a new password. From now on you will log in to the site with a new password.

2. Password generation through account administration

If someone else has administrative access with administrator privileges, they can easily generate a new password:

Administrácia - vygenerovanie hesla
Administration – Generate Password

If you remember your password and want to change it, you can enter a new password through Your profile in a similar way.

💡 Tip for themes: From premium themes, I have good experience with themes Divi, Avada and with page builder Elementor.

3. WordPress – changing password using phpMyAdmin

If you are unable to reset your password via email, you can change it in the WP database using phpMyAdmin. Here’s the procedure:

  1. Log in to phpMyAdmin – you should find your login and URL in your hosting.
  2. Select the WordPress database that you use (if you do not know the access data or do not know which it is, use FTP access. You will find the necessary data in the wp-config.php file on your hosting.)
  3. In phpMyAdmin, select the wp_users folder and click “Browse”. Find your site’s database here.
  4. You can find your login details in user_login. Select a user and click “Change”.

    phpmyadmin wordpress
    phpMyAdmin
  5. You will now see user_id. Click “Change” again.
  6. Go to the “user_pass” line. Set the MD5 function here in the “Function” column.
  7. Enter the new password in the “Value” column and click “Go”.

Use the new password to log in to the administration on your WP website
your domain/wp-login.php

💡 Do you want a faster ⏱ website? Website speed is important for both visitors and SEO. I got the best results thanks to the WP Rocket plugin, which I highly recommend.

4. Resetting password using FTP access

The fourth way is to use FTP access. You must know your administrator account ID, which can be found in the wp_users table (see previous password change solution).

First, log into the site using FTP and download function.php. If you want to edit this file, after <?php, you add:

wp_set_password(new password,1)

Enter your user ID instead of number 1.

Upload the changed file to your site. After logging into account, delete the uploaded file from function.php.

Tip: If you have high-quality hosting with good support, customer service will help you reset your password when you ask for it 🙂

Was this article helpful for you? Support me by sharing, please. 👍
WordPress Návod v PDF

LEAVE A REPLY

Please enter your comment!
Please enter your name here