This might seem redundant but I was unable to find a correct solution.
I was unable to login to mysql using the mysql console.It is asking for a password and I have
Try the following code:
$cfg['Servers'][$i]['password'] = '';
if you see Password column field as 'No' for the 'root' user in Users Overview page of phpMyAdmin.
Users Overview