1 / 5

How to Reset Wordpress Admin Password via MySQL

Often you may need to reset WordPress admin password. Here are the steps to do it. #wordpress #mysql #security <br><br>Visit https://fedingo.com/how-to-reset-wordpress-admin-password-via-mysql/

Download Presentation

How to Reset Wordpress Admin Password via MySQL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to Reset WordPress Admin Password Via MySQL

  2. Get MD5 hash of password Open terminal and run the following command to get MD5 version of your password. Replace mypassword with your password. Please use a strong password consisting of Uppercase & Lowercase letters, numbers and symbols. # echo -n "mypassword" | md5sum The above command will output the MD5 version of your password. Please note it since you will need it later.

  3. Log into MySQL database Log into MySQL database with the following command. Enter MySQL password when prompted. # mysql -u root -p Switch to wordpress database with the following command. > use wordpress;

  4. Update Administrator password You can update the administrator password with the following command. Replace <encrypted_password> with the MD5 hash we obtained in step 1 above. > UPDATE wp_users SET user_pass= "<encrypted_password>" WHERE ID = 1; Alternatively, you can also use MD5 function to encrypt and then store the encrypted password in MySQL table, using MD5 function, as shown below. In this case, replace mypassword with your new password. > UPDATE wp_users SET user_pass = MD5('mypassword') WHERE ID=1;

  5. Thank You Visit for details https://fedingo.com/how-to-reset-wordpress-admin-password-via-mysql/

More Related