- Error : 1045
- Access Denied for user 'root@localhost'(using Password : NO)
Steps to solve the above error:
We may have reset the root password in MySql
The phpMyAdmin with Wamp Server gives above error 1045.
1. MySql Command prompt give the blow command to set the root password.
UPDATE mysql.user SET Password=PASSWORD('NewPass') WHERE User = 'root';
FLUSH PRIVILEGES;
2. After changing the command in MySql also change the password in wamp server as follows:
c:\wamp\apps\config.inc.php
In config.inc.php file find the below syntax and give the password.
$cfg['Server'][$i]['user']='root';
$cfg['Server'][$i]['password']='NewPass';
3. If you want to come out from your current installed password then delete current password and make null password in the file. C:\wamp\apps\config.inc.php
$cfg['Server'][$i]['user']='root';
$cfg['Server'][$i]['password']=' ';