I am new to PHP. When running my application, the following error appears:
In phpMyadmin, the code is as follows
$cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
As I already did, I changed 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 get the following error
Access denied for user 'root' @ 'localhost' (using password: YES) MySQL error #: 1045
Please let me know what is wrong here.
source share