new_password
New password:UPDATE `drupal_user` SET pass = MD5('new_password') WHERE uid = 1;
If the names of the tables in the database do not start with the standard drupal_
, and with a different prefix, make the appropriate change to the SQL query.
new_password
New password:<?php define('DRUPAL_ROOT', getcwd()); require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); require_once 'includes/password.inc'; echo user_hash_password('new_password'); die(); menu_execute_active_handler(); ?>
hash_password
the hash code obtained as a result of executing the script:UPDATE `drupal_user` SET pass = '$hash_password' WHERE uid = 1;
If the names of the tables in the database do not start with the standard drupal_
, and with a different prefix, make the appropriate change to the SQL query.