Replies: 2 comments
-
My guess is it's looking for a socket because you haven't specified a hostname. I'm not too familiar with Docker, but I don't think specifying Maybe try specifying |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @quasipickle. I finally figured out the issue. For some reason the config array was loading as a string. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using version 4.0, when I try to connect to the database I get thefollowing error
SQLSTATE[08006] [7] could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
This is how I'm setting up the connection
The config looks like this
The database is running in another Docker container called
db
. It looks like Phalcon expects a local socket connection for some reason.Anyone know why it's looking for a local socket connection?
Beta Was this translation helpful? Give feedback.
All reactions