Sabonzy
1 year ago
380
5
Laravel

SQLSTATE[HY000] [1045] Access denied for user

Posted 1 year ago by Sabonzy

I uploaded laravel 5.5 to the server and updated the .env file with the database credentials but anytime the app tries to make connection with the database i get Access denied for user. Note: i can login to PhpMyAdmin using the same credentials. my env looks like this:

DB_CONNECTION=mysql
DB_HOST=mysql5019.smarterasp.net
DB_PORT=3306
DB_DATABASE=db_a2bab9_blubuk
DB_USERNAME=db_a2bab9_blubuk
DB_PASSWORD=db_password

Error message:

SQLSTATE[HY000] [1045] Access denied for user 'db_a2bab9_blubuk'@'10.10.28.214' (using password: YES) (SQL: select * from `users` where `username` = ntagoe limit 1)```

Please sign in or create an account to participate in this conversation.