When the administrator password is lost or you forget the username for your WordPress dashboard, the password can be reset and the username can be recovered. This article will explain how to reset the password with the wp_set_passwors function and through phpMyAdmin, and how to recover your username from phpMyAdmin.
If you have an email address that you have access to defined within your Wordpress admin user account, you can simply click on the "Forgot Password?" button below the login form. After doing so, it will send your password to the email account on file for that user.
The WordPress password can be changed by adding code to the functions.php file in your theme folder. Below are the steps to accomplish this..
/public_html/your-user/wp-content/themes/your-theme/functions.php
wp_set_password('password',1);
Important! Make sure you remove the code and update your password. If not, the page will continually reset the password with the script.
Resetting your password or recovering your username through PhpMyAdmin can be an easier way . The following steps will explain how to reset your WordPress Dashboard password and find your username with PhpMyAdmin.
Important! Always remember to have a backup of your database before doing any direct editing on that database.
Select the wp_users table.
Click Edit (The pencil icon).
The user_login field is the username for the admin login.
The user_pass field is where the password is stored.
Type a new password in the password field.
Click "Go"
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!