0

I have this weird issue happened to me when I was setting up my Laravel application on live server, it gives me this error:

SQLSTATE[HY000] [2002] No route to host

everything is correct though because I tested it using plain PHP PDO connection code and it's working fine but still Laravel gives me the above error, any idea how to solve this issue.

1
  • 1
    upload your .env code Commented May 31, 2020 at 12:41

1 Answer 1

1

It looks like you put incorrect database host in .env file.

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

Comments

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.