2

I want to connect Laravel with Postgresql database

when I run

php artisan migrate

I get this error

SQLSTATE[08006] [7] timeout expired (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations)

my .env

DB_CONNECTION=pgsql
DB_HOST=projects.cggts***.rds.amazonaws.com
DB_PORT=5432
DB_DATABASE=projects
DB_USERNAME=*********
DB_PASSWORD=*********
1
  • Check and see if the connection is there. And if the provided information in .env are responding. It may be a misconfig. Commented Jun 3, 2018 at 18:29

1 Answer 1

2

It'll probably inbound VPC problem on AWS . You have to update IP range for your RDS db. You'll find it under EC2->Network & Security->Security Groups . Have fun ;)

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah it was related to inbound rules , thanks (Y)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.