That's PDO trying to outsmart things and trying to use a local socket when
localhost is used: not something Doctrine can really fix.

On Mon, 19 Nov 2018, 19:42 David Stokes <[email protected] wrote:

> Hi All,
>
> I am using Doctrine with MySQL 8.0.13 and ran into what looks like
> something odd to me.  I am using an account that authenticates with mysql
> native authentication (not SHA256 caching) and kept seeing an connection
> refused message until
> I changed the *.env *file from DATABASE_URL=mysql://account:password@
> *127.0.0.1*:3306/databasename to DATABSE_URL=mysql://account:password@
> *localhost*:3306/databasename .
>
> My /etc/hosts points 127.0.0.1 to localhost.
>
> Could someone please explain to me why the s/127.0.0.1/localhost/ is a
> material difference here?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to