Can i retrieve or reset a wordpress password manually?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Angry Jew Cat - Banned for Life
    (felis madjewicus)
    • Jul 2006
    • 20368

    #1

    Can i retrieve or reset a wordpress password manually?

    went to go sign into an old old blog of mine today and i can't remember the password. the email is used is long since invalid, and i'mkind of stuck for what to do, is there any way i can manually draw out or reset my password as the administrator on my server?
  • V_RocKs
    Damn Right I Kiss Ass!
    • Nov 2003
    • 32448

    #2
    You could use the command line in unix to make another and insert it...

    Comment

    • tombarr
      Confirmed User
      • Jul 2003
      • 320

      #3
      Found this after searching for ways to retrieve lost wordpress passwords...

      I'm not a coder, but it might be worth a try..



      "Since I do not have root access to this machine, I wrote a small script, to help me out. It is a simple admin-password resetter containimg a form for setting a new admin password. The POST-value is overwrites the unretrievable on in the WordPress database:

      $sql = "UPDATE ".$wpdb->users."
      SET user_pass = '".md5($_POST['emergency_pass'])."'
      WHERE user_login = 'admin'";
      $link = $wpdb->query($sql);
      wp_redirect('wp-login.php');
      exit();Download: WordPress Admin Password Resetter

      Usage:

      Unzip
      Upload password-resetter.php to your WordPress root (!this is NOT a WordPress Plugin!)
      run http://[your WordPress URI]/password-resetter.php
      set a new password
      Very important: DELETE password-resetter.php

      "
      Last edited by tombarr; 11-26-2007, 10:05 PM. Reason: incomplete

      Gay Paycheck
      Clickx Network Hard Link Trades, Blog Roll Trades - 110 Straight and 40 Gay Niches

      Comment

      • Angry Jew Cat - Banned for Life
        (felis madjewicus)
        • Jul 2006
        • 20368

        #4
        so i'm assuming i switch out 'wpdb' with whatever my database name is and 'emergency_pass' to whatever i want my new pass to be?

        Comment

        Working...