If you locked yourself out of your WordPress account, and you can’t figure a way to log back in (even not with recover password), you can get around it by using the command line.
This will only work if you have ssh access and have installed WP-CLI. WP-CLI is such a handy tool, for instance, to automatically update your WordPress installations, that I would recommend it to everyone.
Once you have installed WP-CLI, enter this command in your WordPress project root folder.
wp user update myuser --user_pass=mypassword
Replace myuser and mypassword by your username and password.
Remember that it’s unsafe to enters passwords in plain text through the command line. It is for example tractable with the
command. Once you did this, login to WordPress and change your password the normal way.