Add after drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); in index.php
require_once 'includes/password.inc'; echo user_hash_password('111111'); die();
Run, get the encrypted ciphertext, and then update the pass field of the database table users.
The above introduces the solution for the root password forgotten by the founder of drupal7, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.