Sie sind auf Seite 1von 1

Community Documentation

Account, permission and login issues Account, permission and login issues up up Resetting the administrator password Resetting the administrator password
with sql-query (Drupal 7) with sql-query (Drupal 7)
Last updated August 16, 2013. Created by Last updated August 16, 2013. Created by jbrauer jbrauer on January 10, 2006. on January 10, 2006.
Edited by Edited by batigolix batigolix, , rvanderh1 rvanderh1, , dkinzer dkinzer, , BassPlaya BassPlaya. . Log in to edit this page Log in to edit this page. .
There are several methods to recover the Drupal administrator ("user 1") password. There are several methods to recover the Drupal administrator ("user 1") password. The fastest way The fastest way
is using drush is using drush. .
Request new password via e-mail
You can reset your password by requesting a new password at You can reset your password by requesting a new password at http://www.example.com?
q=user/password. .
Change password with a database query
Drupal 7
Update administrator password via sql-query in Drupal 7 Update administrator password via sql-query in Drupal 7. .
Drupal 6 and below
Execute the following query on the Drupal database where 'givememypasswordback' is your new Execute the following query on the Drupal database where 'givememypasswordback' is your new
password. You will need to log into your database using phpMyAdmin or another tool. password. You will need to log into your database using phpMyAdmin or another tool.
UPDATE users SET pass = MD5('givememypasswordback') WHERE uid=1;
Recover password with Drush
Drush Drush offers several ways of recovering the administrator's password. offers several ways of recovering the administrator's password.
Generate login-link
Drush can generate a one-time login link. Drush can generate a one-time login link.
drush uli
Reset password
drush upwd --password="givememypasswordback" admin
(where "admin" is the user name) (where "admin" is the user name)
About this page
Drupal version Drupal version
Drupal 4.5.x or older, Drupal 4.6.x, Drupal Drupal 4.5.x or older, Drupal 4.6.x, Drupal
4.7.x, Drupal 5.x, Drupal 6.x, Drupal 7.x, 4.7.x, Drupal 5.x, Drupal 6.x, Drupal 7.x,
Drupal 8.x Drupal 8.x
Audience Audience
Site administrators, Site builders Site administrators, Site builders
Level Level
Beginner, Intermediate, Advanced Beginner, Intermediate, Advanced
Keywords Keywords
administration administration , , site administration site administration , ,
recovery recovery , , admin admin , , password password , , user 1 user 1
Reference
Snippets Snippets
Troubleshooting Troubleshooting
Troubleshooting overview Troubleshooting overview
Reporting a problem Reporting a problem
Viewing PHP settings using phpinfo() Viewing PHP settings using phpinfo()
Account, permission and login issues Account, permission and login issues
Recovering the administrator Recovering the administrator
password password
Resetting the administrator password Resetting the administrator password
with sql-query (Drupal 7) with sql-query (Drupal 7)
Recovering the administrator Recovering the administrator
password with a PHP file (Drupal7) password with a PHP file (Drupal7)
Anonymous users unable to store and Anonymous users unable to store and
save values in $_SESSION. save values in $_SESSION.
Failure to log in as admin after initial Failure to log in as admin after initial
installation installation
Log in after blocking user 1 by an Log in after blocking user 1 by an
access rule access rule
Log in after disabling the user login Log in after disabling the user login
block block
Log in while site is off-line for Log in while site is off-line for
maintenance maintenance
Login blocked after 5 failed login Login blocked after 5 failed login
attempts attempts
Login doesn't "stick" after upgrade to Login doesn't "stick" after upgrade to
PHP 5.2+ PHP 5.2+
Login doesn't work or must be done Login doesn't work or must be done
twice twice
Recreate first user account Recreate first user account
Restore the anonymous (user ID 0) Restore the anonymous (user ID 0)
user record user record
Unblocking an account using SQL Unblocking an account using SQL
Admin pages hang or are very slow Admin pages hang or are very slow
Blank pages and missing content Blank pages and missing content
Error messages Error messages
Pages display incorrectly Pages display incorrectly
Site configuration, module and Site configuration, module and
installation issues installation issues
Translation issues Translation issues
Advanced debugging of Drupal core Advanced debugging of Drupal core
using the command line (strace & using the command line (strace &
tcpdump) tcpdump)
Recovering the administrator password
Recovering the administrator password | Drupal.org 4/4/2014
https://drupal.org/node/44164 1 / 1

Das könnte Ihnen auch gefallen