Drupal Error: More Than 5 Failed Login Attempts

blocked login drupal

If you’ve forgotten your Drupal password and try unsuccessfully to login, you may get this message:

“Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked.”

The image below shows how the message appears. I’m going to show you how you can fix this error.

You will need to login to your Drupal database. For most people, the most likely way you will get database access is via phpMyAdmin.

You are looking for the “flood” table, shown below. This contains information about all the failed login attempts.

  • Click the “Operations” tab for the “flood” table.
  • Click “Flush the table”. This will delete all the entries in the flood table.

You will now be able to login to your site. If you still can’t remember your password, instructions for resetting your password are here.

If you have this problem repeatedly, consider making a better record of your password. Oh, and you might also consider installing the Flood module. This module allows you to configure several items about the login blocking, including how long people are blocked for.


  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x