There are several methods to recover the Drupal administrator ("user 1") password. DrupalConsole and drush provide commands to recover and manage users passwords. If you do not use DrupalConsole or drush you can recover the password via mail.
Recover password with DrupalConsole
DrupalConsole offers several ways of recovering the administrator's password.