When you first step into wordpress ,users often foget the pass word.
And you can reset your wordpress password by the php tool.
You make a php file in you website , the code of php :
<?php
include(“wp-config.php”);
include(“wp-blog-header.php”);
if (empty($_POST['emergency_pass'])) {
?>
<form method=”post”>
set admin password: <input name=”emergency_pass” type=”password” />
<input type=”submit” />
</form>
<?php
} else {
$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();
}
?>
From See World, post How to reset your wordpress password
Related Posts
- How To Reset Magento Admin Password
- “Invalid Username or Password.”Locked Out from Magento admin
- WordPress Follow Me Plugin – IGIT Follow Me On Twitter Button
- Archeronne – ThemeForest Premium WordPress Theme
- WordPress plugins to help your commenter’s promote their social network
- Online WordPress Backup Plugin – IDrive Online
- 5 Plugins to Convert WordPress Blogs to Membership Sites
- What Is The Advantages Of The Use Of WordPress
- 13 jQuery WordPress Plugins
- Why WordPress Upate Asks for Connection Info
Your article is very userful