Can't dump mysql backup file
I have created a backup of my database and now I want to dump it in to my local machine. My machine is linux machine and I have th eroot password for machine. I tried to dump the in to my local backup database using root password on ssh, but i keep getting an errror . "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)". Please suggest me what to do 

This is the command I am using " mysql <databasename> < backup.dump.gz"
Can't dump mysql backup file
===

I have created a backup of my database and now I want to dump it in to my local machine. My machine is linux machine and I have th eroot password for machine. I tried to dump the in to my local backup database using root password on ssh, but i keep getting an errror . "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)". Please suggest me what to do 

This is the command I am using " mysql <databasename> < backup.dump.gz"