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
"