Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reset Wordpress password via SQL?

Tags:

wordpress

How would I go about changing a Wordpress user's password directly in the database? I notice it's not just an md5'd password. There is a $P$B at the start

Thanks,

like image 254
Probocop Avatar asked Jun 30 '10 15:06

Probocop


1 Answers

I did it like this:

UPDATE wp_users SET user_pass= MD5('enter-your-new-password-here') WHERE ID = 1;

Note: you may need to change the ID of your user.

Then, you can check it:

 SELECT * FROM wp_users;

Right now, the password won't have the WordPress format, but WordPress will understand it as MD5, and it all works great!

like image 106
Francisco Corrales Morales Avatar answered Oct 18 '22 21:10

Francisco Corrales Morales