WordPress: Resetting Your Password:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
(未显示另一用户的1个中间版本)
第1行: 第1行:
== To Change Your Password ==
== 更改你的密码 ==
To change your password in '''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
:你的新的密码立马就能使用了。
 
'''WordPress v1.5'''中改变你的密码:
:Your new password takes effect immediately.
#在管理面板,转到 用户
 
#"你的Profile"标签下滚到底部,并在提供的两个栏中输入新的密码。
To change your password in '''WordPress v1.5''':
#点击更新 基本资料 按钮
 
:你的新密码立马就能使用了。
# In the Admin Panel, go to USERS
'''WordPress v2.0'''中更改你的密码:
# From the "Your Profile" tab, scroll to the bottom and type in the new password in the two boxes provided.
#在管理面板上,转到 用户(或者 基本资料)
# Click the UPDATE PROFILE button
#"你的 Profile"标签,下滚到 升级你的密码 部分,并且在提供的两个栏中输入一个新的密码。
 
#点击 更新基本资料 按钮
:Your new password takes effect immediately.
:你的新的密码立马就能使用了。
 
== 通过自动的 emailer ==
To change your password in '''WordPress v2.0''':
如果你在基本资料中知道你的用户名和邮箱帐户,你可以使用WordPress中的"丢失密码"功能。
 
*转到WordPress的注册页面(像[http://codex.wordpress.org/重新设置你的密码http://yoursite.com/wordpress/wp-login.php])  
# 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.
*你会来到一个页面,并以输进一些详细的信息。 在那个帐户的文件上输进你的用户名和邮箱地址。
# Click the UPDATE PROFILE button
*愉快地等待吧因为你的新密码正通过邮件发送给你。
 
*你一旦得到了你的新密码,在你的基本资料页面上,将它登录并且改为你能''记住''的形式。
:Your new password takes effect immediately.
=== 帮助 1.2.1 用户的注解 ===
 
在1.2.1上出现了一个程序错误,你得到的邮件中包含了一个错误编码的密码。你的邮件看起来与这样类似:
== Through the automatic emailer ==
Mime-版本: 1.0
If you know your username and the email account in your profile, you can use the "lost password" feature of Wordpress.
内容-形式: 正文/无格式; charset=UTF-8
*Go to your Wordpress Login page (something like [http://codex.wordpress.org/Resetting_your_password http://yoursite.com/wordpress/wp-login.php])  
内容-转移-编码: BASE64TG9naW46IERpYW5lDQpQYXNzd29yZDogZTIxMTQ2DQpodHRwOi8vZGlhbmV2LmNvbS9ibG9nL3dvcmRwcmVzcy93cC1sb2dpbi5waHA=
*Click on lost password
解决这个问题,就要将你的站点升级到[http://wordpress.org/development/2004/12/one-point-two-two/ 1.2.2]
*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.
== 通过MySQL 命令行 ==
*Wait happily as your new password is emailed to you.
#得到你的密码的MD5杂乱信号。
*Once you get your new password, login and change it to something you can ''remember'' on your profile page.
#** [http://epleweb.com/md5/ 访问MD5 杂乱信号发布者],或者...
 
#*用Python创建一个 对译本 或者…
 
=== Note for 1.2.1 Users ===
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:
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 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]
 
== Through MySQL Command Line ==
#Get an MD5 hash of your password.
#* [http://epleweb.com/md5/ Visit MD5 Hasher], or...
#* Create a key with Python. or...
#* On Unix: echo -n <password> | md5sum
#* On Unix: echo -n <password> | md5sum
#"mysql -u root -p" (log in to MySQL)
#*在Unix:回复-n <密码> | md5总数
#enter your mysql password
#"mysql -u -p" (登录到MySQL)
#"use (name-of-database)" (select WordPress database)
#输入你的mysql密码
#"show tables;" (you're looking for a table name with "users" at the end)
#"使用 (数据库名)" (选择 WordPress 数据库)
#"SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (this gives you an idea of what's going on inside)
#"显示表格;"(你正在找一个结尾是"用户"的表格名)
#"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)
#"选择 ID, 用户_登录, 用户_通行 从(你找到的表格名)" (这提供你里面发生什么的信息)
#"SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (confirm that it was changed)
#"更新 (你找的表格名) 设置 用户_通行="(你只做得MD5串)" 哪里的 ID = (id#-你正在重新设置的帐户的id 的密码)" (事实上改变了密码)
#(type Control-D, to exit mysql client)
#" (你找到的表格名中)选择ID,用户_登录,用户_通行" (确定这已经改了)
 
#(输入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帐户设置密码)" (事实上改变了密码)
 
== 通过 phpMyAdmin ==
== Through phpMyAdmin ==
这篇文章是针对那些拥有[[Wordpress:phpMyAdmin|phpMyAdmin]]权限进入数据库的人所写的。'''注:使用phpMyAdmin的风险是由你自己负责的。如果你怀疑自己使用它的能力,可以寻求更多的建议。对于数据的丢失,WordPress不负有责任。
 
首先登录到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.'''
 
Begin by logging into phpMyAdmin and click '''databases'''.
<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;">
[[Wordpress:Image:changepw2.jpg|thumb|left|Image #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;">
*A list of databases will appear. Click your WordPress database.
*会出现一列数据库。点击你的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;">
[[Wordpress:Image:changepw3.jpg|thumb|center|Image #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'''.
*你的数据库中的所有表格会出现。如果没有出现的话,点击'''结构'''
*Look for '''wp_users'''.
*寻找'''wp_用户'''echo
*Click on the icon for '''browse''' or '''structure'''.
*点击'''浏览''' 或者'''结构'''图标
</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;">
[[Wordpress:Image:changepw4.jpg|thumb|center|Image #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_用户表中的栏。
 
*'''用户_登录'''点击'''浏览'''并且找到注册有关的ID数字。记住这个数字。
*On '''user_login''' click '''browse''' and find the ID number associated with your login. Remember it.
*返回到wp_用户表。
*Go back to the wp_users table.
*'''用户_通行'''一栏中,点击'''浏览'''并且找到与你的登录相关的ID数字。
*On the '''user_pass''' field, click '''browse''' and find the ID number associated with your login.
</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|Image #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;">
*Click '''edit'''.
*点击'''编辑'''
*Next to the ID number is a long list of numbers and letters.
*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'
*Once you have done that, click the dropdown menu indicated, and select MD5 from the menu.
*你一旦完成了这一步,点击显示的下拉菜单,并且从菜单中选中MD5.
</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:changepw7.jpg|thumb|center|Image #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;">
*Check that your password is actually correct, and that MD5 is in the box.
*核实一下你的密码的确是正确的,而且MD5在栏中。
</div>
</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'(运行)按钮到按钮右边。
*Test the new password on the login screen. If it doesn't work, check that you've followed these instructions exactly.
*在登录界面上测试一下新的密码。如果不能运行,核实一下你有没有完全地遵循这些指示。
</div>
</div>
</div>
</div>
<div style="clear:both; height:1px;">&nbsp;</div>
<div style="clear:both; height:1px;">&nbsp;</div>
 
==使用紧急情况下设置密码的脚本==
==Using the Emergency Password Reset Script==
如果上面罗列的其它方法还是不能起作用,就试一下 紧急设置密码脚本。这不是一个插件,而是一个PHP脚本。
 
;警示: 
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.
#要求你知道管理者用户名。
 
#它更新了管理者的密码并且向管理者邮箱发送了一封邮件。
; Warnings :
#如果你没有收到邮件,密码还是更改了。
# Requires you know the administrator username. 
#你不需要登录进来使用它。如果你能够登录,你就不需要脚本了。
# It updates the administrator password and sends an email to the administrator's email address. 
#将这个放到你的WordPress安装的根上。不要将这个上传到WordPress插件目录上。
# 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.
# [http://www.village-idiot.org/archives/2007/05/22/wp-emergency-password-recovery/ Village Idiot WordPress 紧急密码脚本]上下载脚本。
# Delete the script when you are done for security reasons.
# 打开下载的压缩文件。
 
# 将emergency.php文件上传到WordPress安装的根目录上(与包含wp-config.php的目录是同一个目录)。
; Directions for use :
# 在你的浏览器上,打开http:&#47;&#47;example.com/emergency.php.
# Download the script from [http://www.village-idiot.org/archives/2007/05/22/wp-emergency-password-recovery/ Village Idiot WordPress Emergency Password Script].
# 如上面所说明的,输入管理者用户名(通常是 admin)和新的密码,然后点击'''更新选择 '''。一条信息会显示改变了的密码。一封含有改变了的密码信息的邮件会发送到博客的管理者。
# Unpack the downloaded zip file.
#'''当你完成了一行,从你的服务器上删掉emergency.php。'''不要将它存放在你的服务器上,因为其他人可以用它来更改你的密码。
# Upload the file emergency.php to the root of your WordPress installation (the same directory that contains wp-config.php).
# In your browser, open http:&#47;&#47;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.
# '''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.

2008年3月29日 (六) 15:00的最新版本

更改你的密码[ ]

WordPress v1.2中更改你的密码:

  1. 在管理面板,转到 基本资料
  2. 向下滚动到底部,在提供的两个栏中输进新的密码。
  3. 点击更新 基本资料 按钮

:你的新的密码立马就能使用了。 在WordPress v1.5中改变你的密码:

  1. 在管理面板,转到 用户
  2. 从"你的Profile"标签下滚到底部,并在提供的两个栏中输入新的密码。
  3. 点击更新 基本资料 按钮

:你的新密码立马就能使用了。 在WordPress v2.0中更改你的密码:

  1. 在管理面板上,转到 用户(或者 基本资料)
  2. 从"你的 Profile"标签,下滚到 升级你的密码 部分,并且在提供的两个栏中输入一个新的密码。
  3. 点击 更新基本资料 按钮

:你的新的密码立马就能使用了。

通过自动的 emailer[ ]

如果你在基本资料中知道你的用户名和邮箱帐户,你可以使用WordPress中的"丢失密码"功能。

  • 转到WordPress的注册页面(像[1])
  • 点击 丢失密码
  • 你会来到一个页面,并以输进一些详细的信息。 在那个帐户的文件上输进你的用户名和邮箱地址。
  • 愉快地等待吧因为你的新密码正通过邮件发送给你。
  • 你一旦得到了你的新密码,在你的基本资料页面上,将它登录并且改为你能记住的形式。

帮助 1.2.1 用户的注解[ ]

在1.2.1上出现了一个程序错误,你得到的邮件中包含了一个错误编码的密码。你的邮件看起来与这样类似: Mime-版本: 1.0 内容-形式: 正文/无格式; charset=UTF-8 内容-转移-编码: BASE64TG9naW46IERpYW5lDQpQYXNzd29yZDogZTIxMTQ2DQpodHRwOi8vZGlhbmV2LmNvbS9ibG9nL3dvcmRwcmVzcy93cC1sb2dpbi5waHA= 解决这个问题,就要将你的站点升级到1.2.2

通过MySQL 命令行[ ]

  1. 得到你的密码的MD5杂乱信号。
    • 用Python创建一个 对译本 或者…
    • On Unix: echo -n <password> | md5sum
    • 在Unix:回复-n <密码> | md5总数
  2. "mysql -u 根 -p" (登录到MySQL)
  3. 输入你的mysql密码
  4. "使用 (数据库名)" (选择 WordPress 数据库)
  5. "显示表格;"(你正在找一个结尾是"用户"的表格名)
  6. "选择 ID, 用户_登录, 用户_通行 从(你找到的表格名)" (这提供你里面发生什么的信息)
  7. "更新 (你找的表格名) 设置 用户_通行="(你只做得MD5串)" 哪里的 ID = (id#-你正在重新设置的帐户的id 的密码)" (事实上改变了密码)
  8. " 从(你找到的表格名中)选择ID,用户_登录,用户_通行" (确定这已经改了)
  9. (输入Control-D,退出mysql 帐户)

注:如果你有MySQL的最近的版本(5.x?版本)你可以让MySQL帮你计算出MD5的无用信息。

  1. 跳过以上的第一步。
  2. 取而代之的是为第七步做以下的事。
    • "更新 (你找到的表格名) 设置 用户_通行 = MD5('"(新密码)"') 哪里的 ID = (#-你重新为你的id帐户设置密码)" (事实上改变了密码)

通过 phpMyAdmin[ ]

这篇文章是针对那些拥有phpMyAdmin权限进入数据库的人所写的。注:使用phpMyAdmin的风险是由你自己负责的。如果你怀疑自己使用它的能力,可以寻求更多的建议。对于数据的丢失,WordPress不负有责任。 首先登录到phpMyAdmin并且点击数据库

  • 会出现一列数据库。点击你的WordPress数据库。
  • 你的数据库中的所有表格会出现。如果没有出现的话,点击结构
  • 寻找wp_用户echo
  • 点击浏览 或者结构图标

下一个屏面罗列了wp_用户表中的栏。

  • 用户_登录点击浏览并且找到注册有关的ID数字。记住这个数字。
  • 返回到wp_用户表。
  • 用户_通行一栏中,点击浏览并且找到与你的登录相关的ID数字。
  • 点击编辑
  • ID数字旁边是一长串的数字和字母。
  • 选中并且将这些删除,输进你的新密码。
  • 输入你想使用的密码。只要正常将它输进,就可以了,但是要记住,它要求注意大小写。
  • 在这个例子中,新的密码是'rabbitseatcarrots'
  • 你一旦完成了这一步,点击显示的下拉菜单,并且从菜单中选中MD5.
  • 核实一下你的密码的确是正确的,而且MD5在栏中。
  • 点击 'Go'(运行)按钮到按钮右边。
  • 在登录界面上测试一下新的密码。如果不能运行,核实一下你有没有完全地遵循这些指示。
 

使用紧急情况下设置密码的脚本[ ]

如果上面罗列的其它方法还是不能起作用,就试一下 紧急设置密码脚本。这不是一个插件,而是一个PHP脚本。 ;警示:

  1. 要求你知道管理者用户名。
  2. 它更新了管理者的密码并且向管理者邮箱发送了一封邮件。
  3. 如果你没有收到邮件,密码还是更改了。
  4. 你不需要登录进来使用它。如果你能够登录,你就不需要脚本了。
  5. 将这个放到你的WordPress安装的根上。不要将这个上传到WordPress插件目录上。
  6. 你可以为安全考虑而删除脚本。

;用法说明:

  1. Village Idiot WordPress 紧急密码脚本上下载脚本。
  2. 打开下载的压缩文件。
  3. 将emergency.php文件上传到WordPress安装的根目录上(与包含wp-config.php的目录是同一个目录)。
  4. 在你的浏览器上,打开http://example.com/emergency.php.
  5. 如上面所说明的,输入管理者用户名(通常是 admin)和新的密码,然后点击更新选择 。一条信息会显示改变了的密码。一封含有改变了的密码信息的邮件会发送到博客的管理者。
  6. 当你完成了一行,从你的服务器上删掉emergency.php。不要将它存放在你的服务器上,因为其他人可以用它来更改你的密码。