When in Drupal 8, the password for user #1 (the administrator) is lost and the email notification don’t work, it is possible to set the password via a database query. You’ll need access to your hosting server’s shell and database in order to reset administrator’s password in Drupal.