编辑“WordPress:Resetting Your Password”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
== To Change Your Password == | |||
== 更改你的密码 == | == 更改你的密码 == | ||
To change your password in '''WordPress v1.2''': | |||
在'''WordPress v1.2'''中更改你的密码: | 在'''WordPress v1.2'''中更改你的密码: | ||
# In the Admin Panel, go to PROFILE | |||
#在管理面板,转到 基本资料 | #在管理面板,转到 基本资料 | ||
# Scroll down to the bottom and type in the new password in the two boxes provided | |||
#向下滚动到底部,在提供的两个栏中输进新的密码。 | #向下滚动到底部,在提供的两个栏中输进新的密码。 | ||
# Click the UPDATE PROFILE button | |||
#点击更新 基本资料 按钮 | #点击更新 基本资料 按钮 | ||
:Your new password takes effect immediately. | |||
:你的新的密码立马就能使用了。 | :你的新的密码立马就能使用了。 | ||
To change your password in '''WordPress v1.5''': | |||
在'''WordPress v1.5'''中改变你的密码: | 在'''WordPress v1.5'''中改变你的密码: | ||
# In the Admin Panel, go to USERS | |||
#在管理面板,转到 用户 | #在管理面板,转到 用户 | ||
# From the "Your Profile" tab, scroll to the bottom and type in the new password in the two boxes provided. | |||
#从"你的Profile"标签下滚到底部,并在提供的两个栏中输入新的密码。 | #从"你的Profile"标签下滚到底部,并在提供的两个栏中输入新的密码。 | ||
# Click the UPDATE PROFILE button | |||
#点击更新 基本资料 按钮 | #点击更新 基本资料 按钮 | ||
:Your new password takes effect immediately. | |||
:你的新密码立马就能使用了。 | :你的新密码立马就能使用了。 | ||
To change your password in '''WordPress v2.0''': | |||
在'''WordPress v2.0'''中更改你的密码: | 在'''WordPress v2.0'''中更改你的密码: | ||
# In the Admin Panel, go to USERS (or Profile) | |||
#在管理面板上,转到 用户(或者 基本资料) | #在管理面板上,转到 用户(或者 基本资料) | ||
# From the "Your Profile" tab, scroll down to the Update Your Password section and type in a new password in the two boxes provided. | |||
#从"你的 Profile"标签,下滚到 升级你的密码 部分,并且在提供的两个栏中输入一个新的密码。 | #从"你的 Profile"标签,下滚到 升级你的密码 部分,并且在提供的两个栏中输入一个新的密码。 | ||
# Click the UPDATE PROFILE button | |||
#点击 更新基本资料 按钮 | #点击 更新基本资料 按钮 | ||
:Your new password takes effect immediately. | |||
:你的新的密码立马就能使用了。 | :你的新的密码立马就能使用了。 | ||
== Through the automatic emailer == | |||
== 通过自动的 emailer == | == 通过自动的 emailer == | ||
If you know your username and the email account in your profile, you can use the "lost password" feature of Wordpress. | |||
如果你在基本资料中知道你的用户名和邮箱帐户,你可以使用WordPress中的"丢失密码"功能。 | 如果你在基本资料中知道你的用户名和邮箱帐户,你可以使用WordPress中的"丢失密码"功能。 | ||
*Go to your Wordpress Login page (something like [http://codex.wordpress.org/Resetting_your_password http://yoursite.com/wordpress/wp-login.php]) | |||
*转到WordPress的注册页面(像[http://codex.wordpress.org/重新设置你的密码http://yoursite.com/wordpress/wp-login.php]) | *转到WordPress的注册页面(像[http://codex.wordpress.org/重新设置你的密码http://yoursite.com/wordpress/wp-login.php]) | ||
*Click on lost password | |||
*点击 丢失密码 | *点击 丢失密码 | ||
*You will be taken to a page to put in some details. Enter your user name and the email address on file for that account. | |||
*你会来到一个页面,并以输进一些详细的信息。 在那个帐户的文件上输进你的用户名和邮箱地址。 | *你会来到一个页面,并以输进一些详细的信息。 在那个帐户的文件上输进你的用户名和邮箱地址。 | ||
*Wait happily as your new password is emailed to you. | |||
*愉快地等待吧因为你的新密码正通过邮件发送给你。 | *愉快地等待吧因为你的新密码正通过邮件发送给你。 | ||
*Once you get your new password, login and change it to something you can ''remember'' on your profile page. | |||
*你一旦得到了你的新密码,在你的基本资料页面上,将它登录并且改为你能''记住''的形式。 | *你一旦得到了你的新密码,在你的基本资料页面上,将它登录并且改为你能''记住''的形式。 | ||
=== Note for 1.2.1 Users === | |||
=== 帮助 1.2.1 用户的注解 === | === 帮助 1.2.1 用户的注解 === | ||
在1.2. | |||
There is a bug in 1.2.1 where the email you get includes an incorrectly encoded password. Your email will look similar to this: | |||
在1.2.1上出现了一个程序错误,你得到的邮件中包含了一个错误编码的密码。你的邮件看起来内似与这样: | |||
Mime-Version: 1.0 | |||
Content-Type: text/plain; charset=UTF-8 | |||
Content-Transfer-Encoding: BASE64 | |||
TG9naW46IERpYW5lDQpQYXNzd29yZDogZTIxMTQ2DQpodHRwOi8vZGlhbmV2LmNvbS9ibG9nL3dvcmRwcmVzcy93cC1sb2dpbi5waHA= | |||
Mime-版本: 1.0 | Mime-版本: 1.0 | ||
内容-形式: 正文/无格式; charset=UTF-8 | 内容-形式: 正文/无格式; charset=UTF-8 | ||
内容-转移-编码: | 内容-转移-编码: BASE64 | ||
TG9naW46IERpYW5lDQpQYXNzd29yZDogZTIxMTQ2DQpodHRwOi8vZGlhbmV2LmNvbS9ibG9nL3dvcmRwcmVzcy93cC1sb2dpbi5waHA= | |||
The fix for this is to upgrade your site to [http://wordpress.org/development/2004/12/one-point-two-two/ 1.2.2] | |||
解决这个问题,就要将你的站点升级到[http://wordpress.org/development/2004/12/one-point-two-two/ 1.2.2] | 解决这个问题,就要将你的站点升级到[http://wordpress.org/development/2004/12/one-point-two-two/ 1.2.2] | ||
== Through MySQL Command Line == | |||
== 通过MySQL 命令行 == | == 通过MySQL 命令行 == | ||
#Get an MD5 hash of your password. | |||
#得到你的密码的MD5杂乱信号。 | #得到你的密码的MD5杂乱信号。 | ||
#* [http://epleweb.com/md5/ Visit MD5 Hasher], or... | |||
#** [http://epleweb.com/md5/ 访问MD5 杂乱信号发布者],或者... | #** [http://epleweb.com/md5/ 访问MD5 杂乱信号发布者],或者... | ||
#* Create a key with Python. or... | |||
#*用Python创建一个 对译本 或者… | #*用Python创建一个 对译本 或者… | ||
#* On Unix: echo -n <password> | md5sum | #* On Unix: echo -n <password> | md5sum | ||
#*在Unix: | #*在Unix:禁止-n <密码> | md5总数 | ||
#"mysql -u root -p" (log in to MySQL) | |||
#"mysql -u 根 -p" (登录到MySQL) | #"mysql -u 根 -p" (登录到MySQL) | ||
#enter your mysql password | |||
#输入你的mysql密码 | #输入你的mysql密码 | ||
#"use (name-of-database)" (select WordPress database) | |||
#"使用 (数据库名)" (选择 WordPress 数据库) | #"使用 (数据库名)" (选择 WordPress 数据库) | ||
#"show tables;" (you're looking for a table name with "users" at the end) | |||
#"显示表格;"(你正在找一个结尾是"用户"的表格名) | #"显示表格;"(你正在找一个结尾是"用户"的表格名) | ||
#"SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (this gives you an idea of what's going on inside) | |||
#"选择 ID, 用户_登录, 用户_通行 从(你找到的表格名)" (这提供你里面发生什么的信息) | #"选择 ID, 用户_登录, 用户_通行 从(你找到的表格名)" (这提供你里面发生什么的信息) | ||
#"UPDATE (name-of-table-you-found) SET user_pass="(MD5-string-you-made)" WHERE ID = (id#-of-account-you-are-reseting-password-for)" (actually changes the password) | |||
#"更新 (你找的表格名) 设置 用户_通行="(你只做得MD5串)" 哪里的 ID = (id#-你正在重新设置的帐户的id 的密码)" (事实上改变了密码) | #"更新 (你找的表格名) 设置 用户_通行="(你只做得MD5串)" 哪里的 ID = (id#-你正在重新设置的帐户的id 的密码)" (事实上改变了密码) | ||
#"SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (confirm that it was changed) | |||
#(type Control-D, to exit mysql client) | |||
#" 从(你找到的表格名中)选择ID,用户_登录,用户_通行" (确定这已经改了) | #" 从(你找到的表格名中)选择ID,用户_登录,用户_通行" (确定这已经改了) | ||
#(type Control-D, to exit mysql client) | |||
#(输入Control-D,退出mysql 帐户) | #(输入Control-D,退出mysql 帐户) | ||
Note if you have a recent version of MySQL (version 5.x?) you can have MySQL compute the MD5 hash for you. | |||
注如果你有MySQL的最近的版本(5.x?版本)你可以让MySQL帮你计算出MD5的无用信息。 | |||
# Skip step 1. above. | |||
#跳过以上的第一步。 | #跳过以上的第一步。 | ||
# Do the following for step 7. instead. | |||
#取而代之的是为第七步做以下的事。 | #取而代之的是为第七步做以下的事。 | ||
#* "UPDATE (name-of-table-you-found) SET user_pass = MD5('"(new-password)"') WHERE ID = (id#-of-account-you-are-reseting-password-for)" (actually changes the password) | |||
#* "更新 (你找到的表格名) 设置 用户_通行 = MD5('"(新密码)"') 哪里的 ID = (#-你重新为你的id帐户设置密码)" (事实上改变了密码) | #* "更新 (你找到的表格名) 设置 用户_通行 = MD5('"(新密码)"') 哪里的 ID = (#-你重新为你的id帐户设置密码)" (事实上改变了密码) | ||
== 通过 phpMyAdmin == | == 通过 phpMyAdmin == | ||
This article is for those who have [[Wordpress:phpMyAdmin]] access to their database. '''Note: use phpMyAdmin at your own risk. If you doubt your ability to use it, seek further advice. WordPress is not responsible for loss of data.''' | |||
这篇文章是针对那些拥有[[Wordpress:phpMyAdmin|phpMyAdmin]]权限进入数据库的人所写的。'''注:使用phpMyAdmin的风险是由你自己负责的。如果你怀疑自己使用它的能力,可以寻求更多的建议。对于数据的丢失,WordPress不负有责任。 | 这篇文章是针对那些拥有[[Wordpress:phpMyAdmin|phpMyAdmin]]权限进入数据库的人所写的。'''注:使用phpMyAdmin的风险是由你自己负责的。如果你怀疑自己使用它的能力,可以寻求更多的建议。对于数据的丢失,WordPress不负有责任。 | ||
Begin by logging into phpMyAdmin and click '''databases'''. | |||
<div style="width: 100%; position: relative;"> | |||
首先登录到phpMyAdmin并且点击'''数据库'''。 | 首先登录到phpMyAdmin并且点击'''数据库'''。 | ||
<div style="width: 100%; position: relative;"> | <div style="width: 100%; position: relative;"> | ||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | ||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | |||
[[Wordpress:Image:changepw2.jpg|thumb|left|Image #2]] | |||
</div> | |||
[[Wordpress:Image:changepw2.jpg|thumb|left|图像 #2]] | [[Wordpress:Image:changepw2.jpg|thumb|left|图像 #2]] | ||
</div> | </div> | ||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | |||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | ||
*A list of databases will appear. Click your WordPress database. | |||
</div> | |||
*会出现一列数据库。点击你的WordPress数据库。 | *会出现一列数据库。点击你的WordPress数据库。 | ||
</div> | </div> | ||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | |||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | ||
[[Wordpress:Image:changepw3.jpg|thumb|center|Image #3]] | |||
</div> | |||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | |||
[[Wordpress:Image:changepw3.jpg|thumb|center|图像 #3]] | [[Wordpress:Image:changepw3.jpg|thumb|center|图像 #3]] | ||
</div> | </div> | ||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | ||
*All the tables in your database will appear. If not, click '''Structure'''. | |||
*你的数据库中的所有表格会出现。如果没有出现的话,点击'''结构''' | *你的数据库中的所有表格会出现。如果没有出现的话,点击'''结构''' | ||
*寻找'''wp_用户''' | |||
*Look for '''wp_users'''. | |||
*寻找'''wp_用户'''. | |||
*Click on the icon for '''browse''' or '''structure'''. | |||
*点击'''浏览''' 或者'''结构'''图标 | *点击'''浏览''' 或者'''结构'''图标 | ||
</div> | </div> | ||
</div> | </div> | ||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | |||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | ||
[[Wordpress:Image:changepw4.jpg|thumb|center|Image #4]] | |||
</div> | |||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | |||
[[Wordpress:Image:changepw4.jpg|thumb|center|图像 #4]] | [[Wordpress:Image:changepw4.jpg|thumb|center|图像 #4]] | ||
</div> | </div> | ||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | ||
The next screen lists the fields within the wp_users table. | |||
下一个屏面罗列了wp_用户表中的栏。 | 下一个屏面罗列了wp_用户表中的栏。 | ||
*On '''user_login''' click '''browse''' and find the ID number associated with your login. Remember it. | |||
*在'''用户_登录'''点击'''浏览'''并且找到注册有关的ID数字。记住这个数字。 | *在'''用户_登录'''点击'''浏览'''并且找到注册有关的ID数字。记住这个数字。 | ||
*Go back to the wp_users table. | |||
*返回到wp_用户表。 | *返回到wp_用户表。 | ||
*On the '''user_pass''' field, click '''browse''' and find the ID number associated with your login. | |||
*在'''用户_通行'''一栏中,点击'''浏览'''并且找到与你的登录相关的ID数字。 | *在'''用户_通行'''一栏中,点击'''浏览'''并且找到与你的登录相关的ID数字。 | ||
</div> | </div> | ||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | |||
[[Wordpress:Image:changepw6.jpg|thumb|center|Image #6]] | |||
</div> | |||
</div> | |||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | ||
[[Wordpress:Image:changepw6.jpg|thumb|center|图像 #6]] | [[Wordpress:Image:changepw6.jpg|thumb|center|图像 #6]] | ||
</div> | </div> | ||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | |||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | ||
*Click '''edit'''. | |||
*点击'''编辑''' | *点击'''编辑''' | ||
*Next to the ID number is a long list of numbers and letters. | |||
*ID数字旁边是一长串的数字和字母。 | *ID数字旁边是一长串的数字和字母。 | ||
*Select and delete these and type in your new password. | |||
*选中并且将这些删除,输进你的新密码。 | *选中并且将这些删除,输进你的新密码。 | ||
*Type in the password you want to use. Just type it in normally, but remember, it is case-sensitive. | |||
*输入你想使用的密码。只要正常将它输进,就可以了,但是要记住,它要求注意大小写。 | *输入你想使用的密码。只要正常将它输进,就可以了,但是要记住,它要求注意大小写。 | ||
*In this example, the new password will be 'rabbitseatcarrots' | |||
*在这个例子中,新的密码是'rabbitseatcarrots' | *在这个例子中,新的密码是'rabbitseatcarrots' | ||
*Once you have done that, click the dropdown menu indicated, and select MD5 from the menu. | |||
</div> | |||
*你一旦完成了这一步,点击显示的下拉菜单,并且从菜单中选中MD5. | *你一旦完成了这一步,点击显示的下拉菜单,并且从菜单中选中MD5. | ||
</div> | </div> | ||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | |||
[[Wordpress:Image:changepw7.jpg|thumb|center|Image #7]] | |||
</div> | |||
<div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:25%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | ||
[[Wordpress:Image:changepw7.jpg|thumb|center|图像#7]] | [[Wordpress:Image:changepw7.jpg|thumb|center|图像#7]] | ||
</div> | </div> | ||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | ||
<div style="width:70%; float:right; display: inline; padding: 5px; margin: 10px 0;"> | |||
*Check that your password is actually correct, and that MD5 is in the box. | |||
*核实一下你的密码的确是正确的,而且MD5在栏中。 | *核实一下你的密码的确是正确的,而且MD5在栏中。 | ||
</div> | </div> | ||
<div style="width:90%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | |||
</div> | |||
<div style="width:90%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | <div style="width:90%; clear: both; float:left; display: inline; padding: 5px; margin: 10px 0;"> | ||
*Click the 'Go' button to the bottom right. | |||
*点击 'Go'(运行)按钮到按钮右边。 | *点击 'Go'(运行)按钮到按钮右边。 | ||
* | *Test the new password on the login screen. If it doesn't work, check that you've followed these instructions exactly. | ||
*在注册界面上测试一下新的密码。如果不能运行,核实一下你有没有完全地遵循这些指示。 | |||
</div> | |||
</div> | |||
<div style="clear:both; height:1px;"> </div> | |||
</div> | </div> | ||
</div> | </div> | ||
<div style="clear:both; height:1px;"> </div> | <div style="clear:both; height:1px;"> </div> | ||
==Using the Emergency Password Reset Script== | |||
==使用紧急情况下设置密码的脚本== | ==使用紧急情况下设置密码的脚本== | ||
;警示: | |||
#要求你知道管理者用户名。 | If the other solutions listed above won't work, then try the Emergency Password Reset Script. It is not a Plugin. It is a PHP script. | ||
如果上面罗列的其它方法还是不能器作用,就试一下 紧急设置密码脚本。这不是一个插件,而是一个PHP脚本。 | |||
; Warnings : | |||
;警示: | |||
# Requires you know the administrator username. | |||
#要求你知道管理者用户名。 | |||
# It updates the administrator password and sends an email to the administrator's email address. | |||
#它更新了管理者的密码并且向管理者邮箱发送了一封邮件。 | #它更新了管理者的密码并且向管理者邮箱发送了一封邮件。 | ||
# If you don't receive the email, the password is still changed. | |||
#如果你没有收到邮件,密码还是更改了。 | #如果你没有收到邮件,密码还是更改了。 | ||
# You do not need to be logged in to use it. If you could login, you wouldn't need the script. | |||
#你不需要登录进来使用它。如果你能够登录,你就不需要脚本了。 | #你不需要登录进来使用它。如果你能够登录,你就不需要脚本了。 | ||
# | # Place this in the root of your WordPress installation. Do not upload this to your WordPress Plugins directory. | ||
#将这个放到你的WordPress安装的跟上。不要将这个上载到WordPress插件目录上。 | |||
# Delete the script when you are done for security reasons. | |||
#你可以为安全考虑而删除脚本。 | #你可以为安全考虑而删除脚本。 | ||
; Directions for use : | |||
;用法说明: | ;用法说明: | ||
# 从[http://www.village-idiot.org/archives/2007/05/22/wp-emergency-password-recovery/ Village Idiot WordPress | # Download the script from [http://www.village-idiot.org/archives/2007/05/22/wp-emergency-password-recovery/ Village Idiot WordPress Emergency Password Script]. | ||
# 打开下载的压缩文件。 | #从[http://www.village-idiot.org/archives/2007/05/22/wp-emergency-password-recovery/ Village Idiot WordPress 紧急 密码脚本].上下载脚本。 | ||
# 将emergency. | |||
# 在你的浏览器上,打开http://example.com/emergency.php. | # Unpack the downloaded zip file. | ||
# 如上面所说明的,输入管理者用户名(通常是 admin)和新的密码,然后点击'''更新选择 ''' | #打开下载的压缩文件。 | ||
# Upload the file emergency.php to the root of your WordPress installation (the same directory that contains wp-config.php). | |||
#将emergency.php文件上载到WordPress安装的根目录上(与包含wp-config.php的目录是同一个目录)。 | |||
# In your browser, open http://example.com/emergency.php. | |||
#在你的浏览器上,打开http://example.com/emergency.php. | |||
# As instructed, enter the administrator username (usually admin) and the new password, then click '''Update Options'''. A message is displayed noting the changed password. An email is sent to the blog administrator with the changed password information. | |||
#如上面所说明的,输入管理者用户名(通常是 admin)和新的密码,然后点击'''更新选择 '''。一条信息会显示改变了的密码。一封含有给变了的密码信息的邮件会发送到博客的管理者。 | |||
# '''Delete emergency.php from your server when you are done.''' Do not leave it on your server as someone else could use it to change your password. | |||
#'''当你完成了一行,从你的服务器上删掉emergency.php。'''不要将它存放在你的服务器上,因为其他人可以用它来更改你的密码。 | #'''当你完成了一行,从你的服务器上删掉emergency.php。'''不要将它存放在你的服务器上,因为其他人可以用它来更改你的密码。 |