1user:root
2#The password is empty
3password:
4#If by accident you set the password and you don't remember it
5service mysql stop #Stop mysql service
6mysqld_safe --skip-grant-tables & #disable "login"
7mysql #Log in into mysql, you should see mysql> in prompt
8UPDATE mysql.user SET Password=PASSWORD('new-password') WHERE User='root';
9FLUSH PRIVILEGES; #
10exit; # exit from mysql
11mysqladmin -u root -p shutdown # shutdown mysql service
12service mysql start # Restart your service