How to Change Your WordPress Admin Password

If you need to change your WordPress admin password, you can do it easily through the dashboard or using other methods if you're locked out. Here's how:

Changing the Password via WordPress Dashboard

  1. Log in to your WordPress Dashboard

  2. Access the Users Section
    In the left-hand menu, click on Users and then select Profile.



  3. Scroll Down to the Account Management Section
    Scroll down until you see the "Account Management" section. 

  4. Click on "Set New Password"
    In the password field, click on the button labeled Set New Password. WordPress will generate a strong password automatically, but you can overwrite this with your own password if desired.




  5. Save Changes
    Once you’ve set a new password, scroll down and click Update Profile to save the changes.



  6. Confirmation
    You will see a confirmation message that your profile has been updated, and your password has now been changed.


Changing the Password via Email (if Locked Out)

  1. Go to the Login Screen
    If you’ve forgotten your password, go to the login screen (yourwebsite.com/wp-admin).

  2. Click "Lost Your Password?"
    Click the Lost your password? link under the login form.

  3. Enter Your Email
    Enter the email address associated with your admin account and click Get New Password.

  4. Check Your Email
    You will receive an email with a password reset link. Click the link in the email to set a new password.

  5. Set a New Password
    Enter a new password and confirm it, then click Reset Password. You can now log in with the new password.





Changing the Password via phpMyAdmin (Advanced)

If you are unable to reset your password through the dashboard or email, you can use phpMyAdmin to manually change it.

  1. Log into cPanel
    Access your hosting account’s cPanel.

  2. Open phpMyAdmin
    In the Databases section, click on phpMyAdmin.



  3. Select the Database
    In phpMyAdmin, locate and select your WordPress database from the left-hand sidebar.

  4. Find the Users Table
    Look for the table named wp_users (the prefix might differ if you use a custom one).

  5. Edit the Admin User Row
    Find the row that contains your admin username and click Edit.

  6. Change the Password
    In the user_pass field, select MD5 from the dropdown, and enter your new password in the text field.

  7. Save the Changes
    Click Go to save your changes. Your password will now be updated, and you can log in using the new credentials.

Tips for Strong Passwords

  • Use a mix of uppercase and lowercase letters, numbers, and symbols.
  • Avoid using easily guessable words like your name or "password123."
  • Consider using a password manager to generate and store your passwords securely.
هل كانت المقالة مفيدة ؟ 0 أعضاء وجدوا هذه المقالة مفيدة (0 التصويتات)