If you installed WP-CLI on your server to manage your WordPress site, then you can follow these steps to update your password. If you have not setup WP-CLI, then you will need to do so before using these steps.
$ wp user list
$ wp user update id --user_pass=password
You can now login with your new password
Article ID: 1250
Created On: Tue, Nov 17, 2020 at 7:43 PM
Last Updated On: Wed, Nov 18, 2020 at 10:02 PM
Online URL: https://www.heartinternet.uk/support/article/change-your-wordpress-password-with-wp-cli.html