WordPress password hash generator

应用菜单
password
Generate WordPress password
Successfully generated WordPress database password hash copy database password
  • As a website administrator or webmaster, we have permissions including website modification, database operation, etc.; when using the WordPress blog system to build a website, if we forget or lose the administrator password, we can retrieve the password by email, or in the database Reset password in . When WordPress does not send password reset emails, it would be a better option to use a WordPress password generator to change your WordPress password.

Change WordPress password, the first method

    1. <?php
    2.     $your_user_login = "Your WordPress login account";
    3.     $your_user_pass = "The hash result generated by the current WordPress password generator";
    4.     include __DIR__ . "/wp-load.php";
    5.     global $wpdb;
    6.     if( $wpdb->update($wpdb->prefix . "users",["user_pass" => $your_user_pass],["user_login" => $your_user_login]) )
    7.     {
    8.         echo "Change wordpress password successfully!";
    9.         exit();
    10.     }
    11.     echo "Failed to modify wordpress password!";
    12.     exit();
    13. ?>
  • 1. Create a wordpress-database-password.php file in the root directory of the website;
  • 2. Copy the above code snippet and paste it into the file, and save the file;
  • 3. Modify Your WordPress login account;
  • 4. Open the webpage in the browser, for example: your domain name/wordpress-database-password.php; when prompted Change wordpress password successfully! Congratulations, you have successfully reset your WordPress password;
  • 5. Important: After successfully resetting the WordPress password, delete the wordpress-database-password.php file to avoid illegal use;

Change WordPress password, the first method

  • 1. Use database management tools to connect to the current database, such as: phpmyadmin, HeidiSQL, SQLFront, etc.;
  • 2. Edit the user table users and change the user_pass field value;

about

  • WordPress is a website management system based on PHP language and MySQL database, which can easily create and manage websites, including personal blogs, corporate websites, online stores, social networking and news websites, etc.;
  • The WordPress system is easy to use, flexible to use, easy to expand, safe, and easy to understand user interface, which is liked by users and applied to different types of websites;
  • For the forgotten WordPress password, you can use the WordPress password generator combined with the above tutorial to reset the WordPress database password. When the password is changed successfully, you can log in to the WordPress management background again and continue to work;
  • The above two solutions are applicable to forgetting the password, resetting and modifying the administrator password;