If you forget your typo3 password, you can reset it using the mysql command line tool as follows:
mysql> use typo3;
mysql> update be_users set password='bacb98acf97e0b6112b1d1b650b84971' where username = 'admin';
This resets the admin user password to “joh316″.
