The following instructions are from the Answers-Installation page (merged by request) regarding how to reset your password through the MySQL/MariaDB command line. Since I'm not familiar with the process, and it looks like the one already posted. I'm not sharp enough with the code to tell if there is a difference.
Would someone double check this information and either post the corrections or replace the following with what is posted? Thanks.
=== For Command Line MySQL/MariaDB ===
You might have direct access to your MySQL/MariaDB database from the command line. Usually this is done by sitting at your server, connecting directly to your server via SSH, or using the MySQL client on your workstation to connect to your server. You must be in the correct context to successfully execute the mysql command mentioned below.
To reset your WordPress password from the MySQL/MariaDB command line, do the following (replace the options in italics with your settings):
Lorelle 21:53, 30 Jan 2005 (GMT)
EDIT ADDITION - I realized (because I needed the info) that we hadn't supplied the most basic information on how to change your password within WordPress, so I added it. Lorelle 00:45, 12 Feb 2005 (GMT)