Wordpress Password

Pooky

Garfield's Teddy
Joined
Dec 16, 2007
Messages
24,504
Reaction score
21
Location
Neverland
I have forgotten a wordpress admin password. When I try to recover it it says:

The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function...

How would I go about recovering this password?
 
What I've had to do on clients' sites, when their network admin runs away with the account details, is to copy the admin entry from a site that I have access to, and paste it on the client's site, and then reset the password that way.
 
Gonna try this I think:
Thanks alphabyte.
Through FTP
There is also an easy way to reset your password via FTP, if you're using the admin user.

1. Login to your site via FTP and download your active theme's functions.php file.

2. Edit the file and add this code to it, right at the beginning, after the first <?php:

wp_set_password('password',1);
Put in your own new password for the main admin user. The "1" is the user ID number in the wp_users table.

3. Upload the modified file back to your site.

4. After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.
 
Top
Sign up to the MyBroadband newsletter
X