You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the HostEnvName field is set on a InstanceSpec, it should set an environment variable on the workload pods
with the value 127.0.0.1.
Actual Behavior
Instead it sets it to localhost which is problematic for the mysql command line tool. Mysql assumes localhost means "a local socket connection" while 127.0.0.1 is unambiguously a tcp connection.
The text was updated successfully, but these errors were encountered:
When a proxy is configured to serve a TCP connection, the application connecting must use the loopback
interface's ip4 address explicitly: 127.0.0.1 instead of the symbolic name localhost because localhost
is interpreted differently by different database client libraries. Using 127.0.0.1 instead avoids this ambiguity.
Fixes#124
Expected Behavior
When the HostEnvName field is set on a InstanceSpec, it should set an environment variable on the workload pods
with the value
127.0.0.1
.Actual Behavior
Instead it sets it to
localhost
which is problematic for the mysql command line tool. Mysql assumes localhost means "a local socket connection" while127.0.0.1
is unambiguously a tcp connection.The text was updated successfully, but these errors were encountered: