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
Go to C:\xampp\phpMyAdmin
C:\xampp\phpMyAdmin
Edit the config.inc.php file
config.inc.php
Replace $cfg['Servers'][$i]['auth_type'] = 'config'; by $cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
For now on the PHPMyAdmin will ask you for your password, no more error.
PHPMyAdmin