编辑“WordPress:Resetting Your Password”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
== | == To Change Your Password == | ||
To change your password in '''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''': | ||
# 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. | ||
# | # Click the UPDATE PROFILE button | ||
# | |||
:Your new password takes effect immediately. | |||
== | |||
To change your password in '''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. | ||
* | # Click the UPDATE PROFILE button | ||
* | |||
=== | :Your new password takes effect immediately. | ||
Mime- | == Through the automatic emailer == | ||
If you know your username and the email account in your profile, you can use the "lost password" feature of Wordpress. | |||
*Go to your Wordpress Login page (something like [http://codex.wordpress.org/Resetting_your_password 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 === | |||
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) | |||
#"mysql -u | #enter your mysql password | ||
# | #"use (name-of-database)" (select WordPress database) | ||
#" | #"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) | ||
#" | #"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) | ||
#" | #"SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (confirm that it was changed) | ||
#" | #(type Control-D, to exit mysql client) | ||
# | |||
Note if you have a recent version of MySQL (version 5.x?) you can have MySQL compute the MD5 hash for you. | |||
# | # 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) | ||
== | |||
== Through 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| | [[Wordpress:Image:changepw2.jpg|thumb|left|Image #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. | ||
</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| | [[Wordpress:Image:changepw3.jpg|thumb|center|Image #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'''. | ||
* | *Click on the icon for '''browse''' or '''structure'''. | ||
</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| | [[Wordpress:Image:changepw4.jpg|thumb|center|Image #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. | |||
* | |||
* | *On '''user_login''' click '''browse''' and find the ID number associated with your login. Remember it. | ||
* | *Go back to the wp_users table. | ||
*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| | [[Wordpress:Image:changepw6.jpg|thumb|center|Image #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. | ||
* | *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' | ||
* | *Once you have done that, click the dropdown menu indicated, and select MD5 from the menu. | ||
</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| | [[Wordpress:Image:changepw7.jpg|thumb|center|Image #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. | ||
</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. | ||
* | *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;"> </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. | ||
# | |||
# | ; 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. | ||
# | # Delete the script when you are done for security reasons. | ||
# | |||
# | ; Directions for use : | ||
# | # Download the script from [http://www.village-idiot.org/archives/2007/05/22/wp-emergency-password-recovery/ Village Idiot WordPress Emergency Password Script]. | ||
#''' | # 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). | |||
# In your browser, open 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. | |||
# '''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. |