WordPress:Resetting Your Password
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
- 点击更新 基本资料 按钮
- Your new password takes effect immediately.
:你的新的密码立马就能使用了。
To change your password in 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"标签下滚到底部,并在提供的两个栏中输入新的密码。
- Click the UPDATE PROFILE button
- 点击更新 基本资料 按钮
- Your new password takes effect immediately.
:你的新密码立马就能使用了。
To change your password in 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"标签,下滚到 升级你的密码 部分,并且在提供的两个栏中输入一个新的密码。
- Click the UPDATE PROFILE button
- 点击 更新基本资料 按钮
- Your new password takes effect immediately.
:你的新的密码立马就能使用了。
Through the automatic emailer
通过自动的 emailer
If you know your username and the email account in your profile, you can use the "lost password" feature of Wordpress.
如果你在基本资料中知道你的用户名和邮箱帐户,你可以使用WordPress中的"丢失密码"功能。
- Go to your Wordpress Login page (something like http://yoursite.com/wordpress/wp-login.php)
- 转到WordPress的注册页面(像[1])
- 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 用户的注解
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
内容-形式: 正文/无格式; charset=UTF-8
内容-转移-编码: BASE64
TG9naW46IERpYW5lDQpQYXNzd29yZDogZTIxMTQ2DQpodHRwOi8vZGlhbmV2LmNvbS9ibG9nL3dvcmRwcmVzcy93cC1sb2dpbi5waHA=
The fix for this is to upgrade your site to 1.2.2
解决这个问题,就要将你的站点升级到1.2.2
Through MySQL Command Line
通过MySQL 命令行
- Get an MD5 hash of your password.
- 得到你的密码的MD5杂乱信号。
- Visit MD5 Hasher, or...
- 访问MD5 杂乱信号发布者,或者...
- Visit MD5 Hasher, or...
- Create a key with Python. or...
- 用Python创建一个 对译本 或者…
- On Unix: echo -n <password> | md5sum
- 在Unix:禁止-n <密码> | md5总数
- "mysql -u root -p" (log in to MySQL)
- "mysql -u 根 -p" (登录到MySQL)
- enter your mysql password
- 输入你的mysql密码
- "use (name-of-database)" (select WordPress database)
- "使用 (数据库名)" (选择 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, 用户_登录, 用户_通行 从(你找到的表格名)" (这提供你里面发生什么的信息)
- "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 的密码)" (事实上改变了密码)
- "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,用户_登录,用户_通行" (确定这已经改了)
- (type Control-D, to exit mysql client)
- (输入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
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.
这篇文章是针对那些拥有phpMyAdmin权限进入数据库的人所写的。注:使用phpMyAdmin的风险是由你自己负责的。如果你怀疑自己使用它的能力,可以寻求更多的建议。对于数据的丢失,WordPress不负有责任。
Begin by logging into phpMyAdmin and click databases.
首先登录到phpMyAdmin并且点击数据库。
- A list of databases will appear. Click your WordPress database.
- 会出现一列数据库。点击你的WordPress数据库。
- All the tables in your database will appear. If not, click Structure.
- 你的数据库中的所有表格会出现。如果没有出现的话,点击结构
- Look for wp_users.
- 寻找wp_用户.
- Click on the icon for browse or structure.
- 点击浏览 或者结构图标
The next screen lists the fields within the wp_users table. 下一个屏面罗列了wp_用户表中的栏。
- On user_login click browse and find the ID number associated with your login. Remember it.
- 在用户_登录点击浏览并且找到注册有关的ID数字。记住这个数字。
- Go back to the wp_users table.
- 返回到wp_用户表。
- On the user_pass field, click browse and find the ID number associated with your login.
- 在用户_通行一栏中,点击浏览并且找到与你的登录相关的ID数字。
- 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.
- Check that your password is actually correct, and that MD5 is in the box.
- 核实一下你的密码的确是正确的,而且MD5在栏中。
- 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.
- 在注册界面上测试一下新的密码。如果不能运行,核实一下你有没有完全地遵循这些指示。
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
;用法说明:
- Download the script from Village Idiot WordPress Emergency Password Script.
- 从Village Idiot WordPress 紧急 密码脚本.上下载脚本。
- Unpack the downloaded zip file.
- 打开下载的压缩文件。
- 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。不要将它存放在你的服务器上,因为其他人可以用它来更改你的密码。