KNOWNHOST WIKI

User Tools

Site Tools


cms:wordpress:password-reset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cms:wordpress:password-reset [2019/10/10 14:00]
Karson N.
cms:wordpress:password-reset [2020/06/16 13:31] (current)
Karson N. [How to Reset the WordPress Admin Password via My KnownHost]
Line 3: Line 3:
 Occasionally, it is necessary to reset a WordPress password. Sometimes you still have access with the old password, and simply want to make a new password to keep potential attackers guessing. Other times, you might have forgotten the old password, and need to set a new one in order to access your account in the site. Depending on the situation, there are a few different ways to reset a WordPress user's password, even if it is the WordPress admin password being reset. Occasionally, it is necessary to reset a WordPress password. Sometimes you still have access with the old password, and simply want to make a new password to keep potential attackers guessing. Other times, you might have forgotten the old password, and need to set a new one in order to access your account in the site. Depending on the situation, there are a few different ways to reset a WordPress user's password, even if it is the WordPress admin password being reset.
  
 +\\
 ===== How to Reset a WordPress Password via WordPress ===== ===== How to Reset a WordPress Password via WordPress =====
  
 This is going to be the most straightforward method if you still have access to the account. How to do this varies slightly depending on whether you are changing your own password, or if you are using an admin account to change someone else's password. This is going to be the most straightforward method if you still have access to the account. How to do this varies slightly depending on whether you are changing your own password, or if you are using an admin account to change someone else's password.
  
 +\\
 ==== How to Reset Your Own WordPress Password via WordPress ==== ==== How to Reset Your Own WordPress Password via WordPress ====
  
Line 13: Line 15:
 If you are not an administrative user, your WordPress account's options will be very minimal. To change your password, make sure you are on the "Profile" page, and scroll down to "Account Management". Next to "New Password" click the "Generate Password" button: If you are not an administrative user, your WordPress account's options will be very minimal. To change your password, make sure you are on the "Profile" page, and scroll down to "Account Management". Next to "New Password" click the "Generate Password" button:
  
-  * {{cms:wordpress:profile-click-generate-password.png?nolink&300|}}+{{cms:wordpress:profile-click-generate-password.png?nolink&1200|}}
  
 If you like, you can use the password that WordPress generates for you. Otherwise, you can also [[security:misc:how-can-i-generate-a-secure-random-password|generate your own]]. Once you have chosen a password and entered it in the "New Password" box, you can click "Update Profile" at the bottom of the page: If you like, you can use the password that WordPress generates for you. Otherwise, you can also [[security:misc:how-can-i-generate-a-secure-random-password|generate your own]]. Once you have chosen a password and entered it in the "New Password" box, you can click "Update Profile" at the bottom of the page:
  
-  * {{cms:wordpress:profile-password-entered-click-update-profile.png?nolink&300|}}+{{cms:wordpress:profile-password-entered-click-update-profile.png?nolink&1200|}}
  
 You should then see a confirmation message like this: You should then see a confirmation message like this:
  
-  * {{cms:wordpress:profile-own-password-update-confirmation.png?nolink&300|}}+{{cms:wordpress:profile-own-password-update-confirmation.png?nolink&1200|}}
  
 +\\
 ==== How to Reset a WordPress Password via WordPress as Admin ==== ==== How to Reset a WordPress Password via WordPress as Admin ====
  
Line 29: Line 32:
 Then, go to the "All Users" page in the "Users" section. If you hover your cursor over the name of the desired user, you will see the "Edit" link appear: Then, go to the "All Users" page in the "Users" section. If you hover your cursor over the name of the desired user, you will see the "Edit" link appear:
  
-  * {{cms:wordpress:wp-admin-all-users.png?nolink&300|}}+{{cms:wordpress:wp-admin-all-users.png?nolink&1200|}}
  
 As before, scroll down to "Account Management", click "Generate Password", enter the new [[security:misc:how-can-i-generate-a-secure-random-password|password]] in the box, and click "Update User". You should see a confirmation page: As before, scroll down to "Account Management", click "Generate Password", enter the new [[security:misc:how-can-i-generate-a-secure-random-password|password]] in the box, and click "Update User". You should see a confirmation page:
  
-  * {{cms:wordpress:wp-admin-user-pw-update-confirmation.png?nolink&300|}}+{{cms:wordpress:wp-admin-user-pw-update-confirmation.png?nolink&1200|}}
  
 +\\
 ===== How to Reset the WordPress Admin Password via My KnownHost ===== ===== How to Reset the WordPress Admin Password via My KnownHost =====
  
 This method is only available to our [[:wordpress-hosting|Managed WordPress Hosting]] customers. This method is only available to our [[:wordpress-hosting|Managed WordPress Hosting]] customers.
  
-Once you are [[my-knownhost:howto-login|logged in]] to the [[https://my.knownhost.com/|My KnownHost portal]], you can reset the WordPress administrator password on the "Manage Wordpress" page as described [[my-knownhost:manage-services:wordpress:tour:manage|here]].+Once you are [[my-knownhost:howto-login|logged in]] to the ((https://my.knownhost.com/))**[[https://my.knownhost.com/|My KnownHost portal]]**, you can reset the WordPress administrator password on the "Manage Wordpress" page as described [[my-knownhost:manage-services:wordpress:tour:manage|here]].
  
 +\\
 ===== How to Reset a WordPress Password via MySQL ===== ===== How to Reset a WordPress Password via MySQL =====
  
 Since WordPress stores account information in a database, you can use mysql to reset the passwords. If doing so, it is //**strongly recommended**// to afterwards change the password again from within WordPress, to make sure the new password is salted. Since WordPress stores account information in a database, you can use mysql to reset the passwords. If doing so, it is //**strongly recommended**// to afterwards change the password again from within WordPress, to make sure the new password is salted.
  
 +\\
 ==== via SSH ==== ==== via SSH ====
  
-If you are comfortable using [[software:how-can-i-use-putty-software-to-ssh-to-my-cpanel-server|SSH]],(([[:wordpress-hosting|Managed WordPress Hosting]] customers can find their SSH access details as described [[my-knownhost:manage-services:wordpress:tour:sftp-ssh|here]].)) you can use the commandline to change the password for any of the WordPress users. In that case, instructions can be found [[cms:reset-wordpress-admin-via-mysql|here]].+If you are comfortable using [[software:how-can-i-use-putty-software-to-ssh-to-my-cpanel-server|SSH]],(([[:wordpress-hosting|Managed WordPress Hosting]] customers can find their SSH access details as described [[my-knownhost:manage-services:wordpress:tour:sftp-ssh-old|here]].)) you can use the commandline to change the password for any of the WordPress users. In that case, instructions can be found [[cms:reset-wordpress-admin-via-mysql|here]].
  
 +\\
 ==== via phpMyAdmin ==== ==== via phpMyAdmin ====
  
 If you have access to phpMyAdmin, you can also use that to change the WordPress passwords. On a cPanel server, you can access phpMyAdmin from [[control-panels:cpanel-whm:getting-started#logging_into_cpanel|within cPanel]], by clicking "phpMyAdmin" in the "Databases" section: If you have access to phpMyAdmin, you can also use that to change the WordPress passwords. On a cPanel server, you can access phpMyAdmin from [[control-panels:cpanel-whm:getting-started#logging_into_cpanel|within cPanel]], by clicking "phpMyAdmin" in the "Databases" section:
  
-  * {{cms:wordpress:cpanel-open-phpmyadmin.png?nolink&300|}}+{{cms:wordpress:cpanel-open-phpmyadmin.png?nolink&1200|}}
  
 Then, find the database the site uses, and the table the users are stored in. Usually the table will be called ''%%wp_users%%'' but even if it uses a different table prefix it will usually still have a name ending in ''%%_users%%''. When browsing the table, you can deselect some of the columns to make it easier to read. Once you have found the row corresponding to the user whose password you need to change, click "Edit". Then, find the database the site uses, and the table the users are stored in. Usually the table will be called ''%%wp_users%%'' but even if it uses a different table prefix it will usually still have a name ending in ''%%_users%%''. When browsing the table, you can deselect some of the columns to make it easier to read. Once you have found the row corresponding to the user whose password you need to change, click "Edit".
  
-  * {{cms:wordpress:cpanel-phpmyadmin-edit-row.png?nolink&300|}}+{{cms:wordpress:cpanel-phpmyadmin-edit-row.png?nolink&1200|}}
  
 Next, you'll need to decide on a temporary [[security:misc:how-can-i-generate-a-secure-random-password|password]]. It is recommended that even this temporary password is randomized, in case someone tries to guess it before you've had a chance to reset it from within WordPress. Next, you'll need to decide on a temporary [[security:misc:how-can-i-generate-a-secure-random-password|password]]. It is recommended that even this temporary password is randomized, in case someone tries to guess it before you've had a chance to reset it from within WordPress.
Line 63: Line 70:
 Then, in the row for user_pass, choose "MD5" from the dropdown box, and put the new password in the "Value" column. Make sure "Save" is selected in the dropdown at the bottom, and then click "Go". Then, in the row for user_pass, choose "MD5" from the dropdown box, and put the new password in the "Value" column. Make sure "Save" is selected in the dropdown at the bottom, and then click "Go".
  
-  * {{cms:wordpress:cpanel-phpmyadmin-enter-new-pw.png?nolink&300|}}+{{cms:wordpress:cpanel-phpmyadmin-enter-new-pw.png?nolink&1200|}}
  
 After that, you should see a success message: After that, you should see a success message:
  
-  * {{cms:wordpress:cpanel-phpmyadmin-wp-pw-success.png?nolink&300|}}+{{cms:wordpress:cpanel-phpmyadmin-wp-pw-success.png?nolink&1200|}}
  
 Be sure to remember to quickly log into WordPress to change the password again there, so that it will be stored salted, and with a stronger hash. Be sure to remember to quickly log into WordPress to change the password again there, so that it will be stored salted, and with a stronger hash.
cms/wordpress/password-reset.1570734052.txt.gz · Last modified: 2019/10/10 14:00 by Karson N.