Setting root password problem

hi! this is my 1st post. please bear with me. i just downloaded mysql. i had the anonymous user deleted but when i tried to set my root password i got this error:

‘Access denied for user: ‘root@localhost’ <Using password: NO>’

please kindly help me on this guyz.

thnks,

kapitan