MYSQL: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'' - Any suggestions?



Hello i am trying to setup Circle CI with Laravel.
It seems like Circle CI or my project or whatever isn’t using the .env file since the error message below suggests the default credentials in the laravel config file:

SQLSTATE[HY000] [1045] Access denied for user 'forge'@'' (using pa  
      ssword: YES) (SQL: select * from information_schema.tables where table_sche  
      ma = circle_test and table_name = migrations)

My circle ci config is available here

And my testing .env is here

I hope that someone can help og give me a hint :slight_smile:


Are you able to SSH into your build? I’m not familiar with Laravel, but my bet is that your pwd isn’t what you’d expect when you’re executing the cp command. I would try defining the full path when using that command to remove any ambiguity.
To test this, either SSH in or run a simple ‘pwd’ command followed by ‘ls’ to make sure the file you’re looking for is in the right place.