I am new to PHP. I get the following error when executing my application:
In phpMyadmin the code is like this
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
As I have taken back up, I have change the above code to
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'Pass123';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
Now I am get the following error
Access denied for user 'root'@'localhost' (using password: YES) MySQL Error # :1045
Please let me know, what went wrong here.