This is a quick tutorial to reset your MySQL root password. It does require root access on your server. If you have forgotten that password wait for another article.
1. Log in as root and stop the mysql daemon.
# service mysqld stop
2. Start up the mysql daemon and skip the grant tables which store the passwords.
# mysqld_safe --skip-grant-tables
3. Now you should be able to connect to mysql without a password.
# mysql --user=root mysql
4. Update root password
update user set Password=PASSWORD('new-password') where user='root';
5. Finally kill your running mysqld process, then restart it normally.
# kill -9 <mysqld pid> # service mysqld start