-
-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Db connection : "localhost" and "::1" confusion #4253
Comments
Hey @TeoConan! 👋🏻 That's a change in how Node.js resolves Maybe we should change the default value in our |
+1 to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Package version
11.3.1
Node.js and npm version
v18.16.0, 9.5.1
Sample Code (to reproduce the issue)
In
.env
,MYSQL_HOST=localhost
BONUS (a sample repo to reproduce the issue)
I don't know if it's juste me, but if you create an Adonis project, setup a MySQL connection and try, for example, to run a migration with this line in your
.env
file :You'll receive :
So I tried to do this to verify what's happening on my local mysql :
You can correct this very easily by set your
.env
varMYSQL_HOST
by127.0.0.1
The text was updated successfully, but these errors were encountered: