Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

J-Guo's avatar
Level 2

Forge DB password from Email is not correct

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!

0 likes
1 reply
ejdelmonico's avatar

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.

Please or to participate in this conversation.