Losing passwords may create serious issues by completely locking down your database access.Recently, I installed MySQL on my system and tried to change the password to improve security. While performing the steps, unintentionally, I misplaced my MySQL database password and lost access.
Source: LXer – How to Reset MySQL Root Password in Ubuntu and Fix Error 1045 (28000)