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
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 :
That's a change in how Node.js resolves localhost. Now it returns IP addresses in the order they are returned from the name resolver/DNS. nodejs/node#39987
Maybe we should change the default value in our .env file to 127.0.0.1 to avoid any issue related to this.
Any feedback on this @targos?
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: