You may use the Berkeley DB (BDB) storage engine in MySQL; however it is no longer supported or installed by default in their certified binaries.
Before resetting your MySQL password, you must access your server as the root user.
To Reset MySQL Passwords on Linux Servers
To stop MySQL and restart in safe mode: At the command prompt, type the following commands and press Enter after each.
service mysqld stop