//Firstly open your website folder and open index.php file
// these three lines of code paste to your index file as its is.
//Go to Browser and type yur site url--- localhost/drupal/index.php
//Password will show as hash format paste to your database in 'users' table and paste to pass column
<?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(‘typeyourpassword‘);
die();
menu_execute_active_handler();
?>
No comments:
Post a Comment