Message : "SQLSTATE[HY000] [1045] Access denied for user 'knight91_database'@'localhost' (using password: YES)"

I have been working on my development site and have downloaded a new version of xampp. When I tried to open my login page i got the code

message
:
"SQLSTATE[HY000] [1045] Access denied for user 'knight91_database'@'localhost' (using password: YES)"

The priviledge for the user root@'localhost' in the database shows no password

I have checked the config.inc.php file and found the code:

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

I cannot figure out why the Access Denied error occurs? Can anyone help me resolve this issue?

Thanks;
Jim Damrau

Not a XAMP user but looks like it wants you to set a root password, probably an enforced security requirement.

Thank you for your help. Somehow the root account was not created in the database.