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. The easiest way to upgrade your WordPress blog
  2. Mail working with XAMPP
  3. Blank WordPress Dashboard
  4. WordPress Plugin tutorial part 2 The Header
  5. Your WordPress RSS Feeds

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

CommentLuv Enabled
logo
logo
Powered by Wordpress | Designed by Elegant Themes