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 :
$ node ace migration:run
Error: connect ECONNREFUSED ::1:3306
So I tried to do this to verify what's happening on my local mysql :
mysql -h localhost -uroot -p -D lucid # work
mysql -h ::1 -uroot -p -D lucid # doesn't work
You can correct this very easily by set your .env var MYSQL_HOST by 127.0.0.1
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=localhostBONUS (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
.envfile :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
.envvarMYSQL_HOSTby127.0.0.1