Archive for the Wordpress Category

forget wordpress’s password,how to have new password?

i install the wordpress,but i forget change password the system assign to me rand.
so i forget password of a statement argument etc be logical .

How to change old password?

Creat a new .php file at root directory,then write code below

require_once('./wp-config.php');
require_once('./wp-includes/pluggable.php');
$password = "123456";
$user = "admin";
$hash = wp_hash_password($password);
$wpdb->query( “UPDATE wp_users SET user_pass = ‘$hash’ WHERE user_login = ‘$user’ “);
?>

run it,new password has been created!

Filed under:Wordpress | No Comments