Magento – SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)

databasemagento-2.0.7mamp

i am using MAMP on Mac OSX Yasmite 10.10.5 and getting this error.

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

enter image description here

I have created database and name it magento.

enter image description here

enter image description here

Don't know where is the problem + there is no local.xml in magento/app/etc instead di.xml is available. Thanks in advance for any help.

Best Answer

Your server host is localhost:8889

So on the Database Server host try to give localhost:8889 instead of on localhost.

Hope this will help you

Related Topic