Wordpress忘记后台密码怎么办 轻松找回WP密码的方法
<p><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>说到Wordpress可能有的站长还没用过,但是作为一名博客主,如果不知道它,您真是OUT了!它是大名鼎鼎的PHP博客解决方案提供者,它免费开源使用,但是有的站长就是那么马虎,或许他们比较忙吧,几天没去博客后台,竟然忘记了后台密码,肿么办?</span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> 请看最火软件站(原烈火网)给您提供的方法,其实很简单,把以下代码放到记事本中,文件命名为Veryhuo.php,然后上传到网站根目录下,访问你的网站/veryhuo.php,就可以重新设置密码了。</span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> 请注意:一定要修改代码中的MYSQL连接信息哦!</span></p>
<div style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<p style="margin: 0px; padding: 0px; outline: none; float: right; line-height: 25.2px; font-size: 14px;">
<span style="line-height: 25.2px; cursor: pointer;"><u>复制代码</u></span></p>
<p>
代码如下:</p>
</div>
<p style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
<?php <br>
/*你的数据库服务器地址,一般保持默认*/ <br>
$servername = "localhost:3306"; <br>
/*数据库用户名*/ <br>
$phpMyadminUser = "root"; <br>
/*数据库密码*/ <br>
$phpMyadminKey = "veryhuo"; <br>
/*数据库名称*/ <br>
$phpMyadminName = "test"; <br>
/*wordpress数据表格前缀*/ <br>
$QZ = "wp_"; <br>
/*你要设置的wordpress新密码*/ <br>
$NewKey = "veryhuo"; <br>
/*你要设置新密码的用户名*/ <br>
$wordpress_User = "veryhuo"; <br>
?> <br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"> <br>
<html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"> <br>
<head> <br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <br>
<title>wordpress密码找回工具_Veryhuo.COM</title> <br>
</head> <br>
<body> <br>
<?php <br>
error_reporting(0); <br>
if(!mysql_connect($servername,$phpMyadminUser,$phpMyadminKey)) <br>
{ <br>
echo "对不起,数据库链接出错。<br>
"; <br>
} <br>
else <br>
{ <br>
echo "数据库链接成功。<br>
"; <br>
mysql_select_db($phpMyadminName,mysql_connect($servername,$phpMyadminUser,$phpMyadminKey)); <br>
if (!mysql_query("update ".$QZ."users set user_pass='".md5($NewKey)."' where user_login='".$wordpress_User."'")) <br>
{ <br>
echo "对不起,修改密码失败。"; <br>
} <br>
else <br>
{ <br>
echo "修改密码成功。"; <br>
} <br>
} <br>
?> <br>
</body> <br>
</html></p>
頁:
[1]