To set your root password after installing:
- Ensure MySQL is not running, stop it if you ran it.
- On a Terminal do
sudo mysqld_safe --skip-grant-tables
to run MySQL bypassing the authentication.
- Inside mysql do
FLUSH PRIVILEGES;
- Then reset by
SET PASSWORD FOR root@'localhost' = PASSWORD('password');
where 'password' is your chosen password.
FLUSH PRIVILEGES;
one more time