We’ve just migrated our website from a local server to a web server. Nothing was changed during the migration – including the password – and unfortunately, I don’t have access to it since I never changed or noted it before the migration.
As a result, the site is currently inaccessible.
Could you please advise how I can recover or reset the password, or regain access in another way?
I don’t think there’s a way to recover the password, so you’ll need to reset the password for the user. There’s a couple of different ways to approach this:
Reset the password in the Local site and then re-migrate the site to the live server. More details on resetting the password can be found in this help doc: Reset a WordPress admin password - Local
If the admin user’s email is a real one (ie, it’s not the default one that Local creates as dev-email@wpengine.local) then you should be able to do a password reset for that user on the live site. The flow is similar to what’s outlined in the above help doc, but you would do that on the live site
Using WPCLI within a site shell of the remote site, you can reset the password for the admin user. The process of using wpcli is covered in the above help doc, but you’ll need to connect to the remote site’s server using whatever process they have to grant you ssh access with a shell that has wpcli installed.
Hope that helps give you some direction. Let us know if you have any questions!