logo

Easiest way to reset your password

logo

If you can’t login, but you can access your site via FTP, then edit the theme’s functions.php file and add this code to it, right at the top after the first<?php bit:
wp_set_password('MyNewPassword',1);

Put in your own new password for the main admin user. The “1″ is the user ID number in the wp_users table.

Then just log in using the new password, just make sure you remove the line from the function file when your done.

Related posts:

  1. Mail working with XAMPP
  2. The easiest way to upgrade your WordPress blog
  3. Your WordPress RSS Feeds
  4. Web server on a thumb drive
  5. Warning Check your themes

2 Responses to “Easiest way to reset your password”

  1. Chartwell says:

    Well… I don’t know that great tip. Let admit it we reset our password, once in a while…
    Thanks. However.

  2. Thank you. This worked perfectly. =]

Leave a Reply

logo
logo
Powered by Wordpress | Designed by Elegant Themes