Drupal:The username admin has not been activated or is blocked

While login to  Drupal you might deal with following error:

Error : The username admin has not been activated or is blocked.

To solve this problem, you can follow below steps:

1) Login to your cPanel.

2) Navigate to cPanel >> Databases >> PhpMyadmin

3) Choose your database which you have used in installation of Drupal.

4) In the window find the table users and click the browse button besides it.

5) Navigate the admin and select edit button besides it.

6) Edit the “status” field from “0” to “1”  and click go.

7) Now try to login, Now Drupal should allow admin user to login without any error.

Sometimes we want to check our Drupal site just before publishing for this you can follow steps here: Access Drupal with temporary URL