How to Reset WordPress Admin Password on Localhost
Check Out More At: WP Beginner
WordPress: Best WordPress Plugins | WordPress Tutorials
How to Reset WordPress Admin Password on Localhost
Product Image | Product Name / Primary Rating / Price | Primary Button / Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Elementor is an amazing website builder plugin for WordPress. Elementor makes it easy to create beautiful and high converting websites yourself without having to learn code.
Gravity Forms is a WordPress plugin that creates powerful forms quickly and easily, with drag-and-drop fields, custom notifications and confirmations, and custom styling capability.
Kadence Theme is a powerful, intuitive and flexible WordPress theme that offers an expansive set of features and customization options.
It includes a robust page builder, beautiful design options, mobile-friendly responsiveness, powerful SEO tools and optimized performance for faster loading times.
It's perfect for creating stunning websites without needing to write any code.
Cloudways is a managed cloud hosting platform that simplifies cloud infrastructure deployment and management.
It provides an intuitive dashboard, automated backups and optimized stack for speedy performance. It also provides 24x7 support with multiple server locations, enabling businesses to host their applications quickly and securely.
Assuming that you have installed WordPress on your localhost and you don’t remember the password of your admin account, don’t worry. In this article, we will show you how to easily reset WordPress password on localhost.
First thing you need to do is connect to your WordPress site using an FTP client. Once you are connected, go to the /wp-content/ directory and look for a file named config.php.
Right-click on the config.php file and choose Code Editor. A new window will open containing the code of your config.php file.
Look for the following line of code in your config.php file:
define(‘WP_DEBUG’, false);
Change false to true and then save your changes.
Now go back to your WordPress site and try to login. You should see the following message:
“Debugging is on. WordPress will display debugging information on your site.”
Click on the link that says “Click here to continue”.
You will be taken to the login page. Enter your username and leave the password field blank. Now click on the “Log In” button.
You will be taken to the WordPress password reset page. Enter your new password and click on the “Reset Password” button.
You have now successfully reset your WordPress password on localhost.