I have Configured Magento With Valid Credentials. But, it shows SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) . I have Cleared Cache(Deleted var Folder).

Cross Checked app/etc/local.xml

Gave 777 Permission to root folder.

I Checked by Renamed/Deleted app/etc/local.xml still it shows the same Error.

  • 2
    is this root db details correct ? check if there is any other backup local.xml exist in etc folder and delete if exist. – Pankaj Pareek Aug 7 '17 at 5:58
  • Yeah Thanks @PankajPareek. It worked. But Why it is taking instead local.xml – Saravanan DS Aug 7 '17 at 7:11
  • Magento loads all the xml file in etc folder and then merge the node. If we need to take backup then use backup string with extension name instead of file name. – Pankaj Pareek Aug 7 '17 at 8:28
  • @PankajPareek. Thanks for your information. – Saravanan DS Aug 18 '17 at 9:22

I Solved my issue.

I had other backup local.xml file. When i removed this it's worked fine.

Credits @Pankaj Pareek

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.