There have been countless times that after starting a Drupal project I have not had the access credentials at first sight either, because the password has been changing, because there is no wiki with the updated information or I have simply landed in a legacy project in which the documentation is non-existent.
What is the first thing we learn from all this ...
It is very important to have good documentation in your project, not only for you, but it will also help all current or future members that the project may have.
In short, we have reached this situation, WE DON'T HAVE THE PASSWORD :( No need to worry, drush arrives and his magnificent uli command.
Its use is very simple and we can see it below
drush uli
This command will return the following:
As you can see, it returns us a URL which we can click directly or copy in our browser and it will automatically access the administration panel without having entered the password.
It is possible that if you do not have the domain configured instead of showing your URL, the following will appear ...
http://default/user/reset/1/3859945016/A3M9urWY9uoh6_ltrYhZytZOk-d8s2I6jo2MHp8AO_aiE/login
In this case we will simply take the URL from default, being as follows ...
/user/reset/1/3859945016/A3M9urWY9uoh6_ltrYhZytZOk-d8s2I6jo2MHp8AO_aiE/login
Now we will simply go to our browser and paste it AFTER our domain, in my case it would be as follows ..
http://tudominio.com/user/reset/1/3859945016/A3M9urWY9uoh6_ltrYhZytZOk-d8s2I6jo2MHp8AO_aiE/login
Voilá! We already have Administrator access!