View Single Post
Old 11-27-2007, 12:04 AM  
tombarr
Confirmed User
 
Join Date: Jul 2003
Location: Los Angeles
Posts: 320
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

"
__________________

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

Last edited by tombarr; 11-27-2007 at 12:05 AM.. Reason: incomplete
tombarr is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote