Level 53
Double check you have the DB_DATABASE, DB_USERNAME and DB_PASSWORD correct. If that checks out, I would start googling the issue concerning EC2 permissions.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi everyone,
I got the credential from Email after my Laravel Forge server has been provisioned. I am sure that I have set .ENV file on Laravel Forge website. However, when I tried to deploy my project I got an error message:
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: YES)
I also SSH to EC2 and tried mysql -uforge -pmypassword but got the same error as well.
Who can help me solve this issue? Thanks!
Please or to participate in this conversation.