- Turn off MySQL
- Reset the root password through safe mode
sudo mysqld_safe --skip-grant-tables //Start up safe mode mysql -u root //Log into MySQL as root: use mysql; update user set password=PASSWORD("the new password you want to use") where User='root'; flush privileges; exit
- Start MySQL