Create admin account via command line
Another way to a create admin account / user, we can create a new admin user via command line (cli). Here is how to do it.
Go to Magento 2 root folder, run create a new admin user command line:
It will ask you: username, password, email, first and last name.
Here is what we filled:
Admin user: yourname
Admin password: YourPassword
Admin email: firstname.lastname@example.org
Admin first name: YourName
Admin last name: Team
And get result:
Created Magento administrator user named yourname
magento 2 create admin user