Eror Login Admin Drupal


Mohon bantuannya para master drupal..
saya gabisa login admin di web padahal username sama passwordnya udah bener..
pas login keluar tulisan "<strong>You are not authorized to access this page.</strong>"

sekali lagi mohon bantuannya..


Foto Ananto's

itu setelah kluar tulisan seperti itu, sudah ter login atau masi belum login ?

soalnya mungkin pada waktu anda login, anda lagi mengakses suatu halaman yang ada ga punya akses. Jadi anda tetap bisa login, tp di halaman itu anda ga bisa akses.

Foto anodenymous's

Hope it helps :)

#Drupal 6 Reset your admin user pass on  using mysql query 

update users set pass=md5("newspass") where uid = 1;

#Drupal 7. Recover, unblock admin acoount blocking after 5 failed login attempts.

DELETE FROM `flood`;

#Reset pass using file drupal 7 only

1. First, create a file with a random name (filename.php for example).
2. Copy and paste the following contents into the file, and save the file.

define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/';
require_once DRUPAL_ROOT . '/includes/';
if (isset($_GET['pass']) && !empty($_GET['pass'])) {
  $newhash =  user_hash_password($_GET['pass']);
else {
  die('Retry with ?pass=PASSWORD set in the URL');

$updatepass = db_update('users') 
    'pass' => $newhash,
// Uncomment the following lines to reset the administrative username and/or email address, if necessary.
//    'name' => 'admin',
//    'mail' => ''
  ->condition('uid', '1', '=')
print "Done. Please delete this file immediately!";

3. Upload the file to the root of the Drupal installation directory (i.e., where index.php, update.php, robots.txt and other files and directories exist).

4. Execute the script, by requesting the file in a web browser using the following URL pattern: