There are different ways to retrieve a lost admin password. Following are the listing of various methods:
1) Through the automatic emailer
2) Through MySQL Command Line
3) Through phpMyAdmin
4) Through FTP
5) Through WP CLI
Please find a reference link for details:
https://codex.wordpress.org/Resetting_Your_Password
Thanks.
Hi,cryptojim
Using MySQL Command Line: go on mysql where your database:
Select your database -> wp_users table (user_pass) column and replace password for selected user with md5.
Screen
Thanks,
Ravi patel
Sorry now I found out he never made a password or admin name he used the WHM to access the site admin after downloading wordpress