50 likes | 60 Views
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/
E N D
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.
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;
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;
Thank You Visit for details https://fedingo.com/how-to-reset-wordpress-admin-password-via-mysql/