0

I cannot login as admin anymore on my Drupal 7 installation.

I tried:

  • Generate a new password with user_hash_password;
  • Generate a new password with SQL Query;
  • Clearing the sessions table;
  • Clearing my browser cookies.

Is there a way to create a new account? There is only one account on Drupal 7 installation, that is the admin account. I don't have drush or an email server installed on my local machine.

  • 3
    Try truncating the "flood" table in your SQL database (don't delete the table itself, just it's content) – 100pic Mar 14 at 22:38
  • 3
    install drush command use drush uli to generate one time login for admin, and see if it works ? – berramou Mar 14 at 22:39
  • what's the error you get ? – berramou Mar 14 at 22:40
  • @100pic thank you, your solution works for me! – H. Adoorn Mar 14 at 22:49
  • Your welcome @H.Adoorn :) – 100pic Mar 14 at 22:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.