how to solve this error. I'm using GoDaddy server In Abstract.php line 144:

SQLSTATE[28000] [1045] Access denied for user 'glamaa_mg4'@'localhost' (using password : YES)

In Abstract.php line 128:

SQLSTATE[28000] [1045] Access denied for user 'glamaa_mg4'@'localhost' (using password : YES) enter image description here

2 Answers 2


Are both websites on the same physical server? If not you'll have to do the MySQL connection via domain/IP address rather than localhost.


local.xml has this username : glamaa_mg4 Than the app/etc/env.php has username:i5762028_mg3

Would you try to make them same at both files? or the user that is valid on server

  • two different databases, why he needs the same user?
    – MagenX
    Jun 14, 2019 at 8:42
  • thanks for helping. I copied database Magento 1 to host Magento 2 it working Jun 14, 2019 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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