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

docker
circle.yml

#1

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'@'127.0.0.1' (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 https://gist.github.com/coleander/30930d50d3ce57b5a49508bdb75f493e

And my testing .env is here https://gist.github.com/coleander/f354105a97a5cd48a5cd0f6724829ebc

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


#2

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.


#3