ronylicha's avatar

no authentication parameters supplied on sail up

Hello to everyone

i have a project working perfectly on production (laravel 10), and i try to install it on my computer to work on it with docker.

When i sail up i have this error:

INFO success: php entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Auth: no authentication parameters supplied
Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] Connection refused

Seem to be that i didn't give credential in my .env but here my .env:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=test
DB_USERNAME=test
DB_PASSWORD=test

i also try

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=test
DB_USERNAME=test
DB_PASSWORD=test

in my Dockerfile i have the right variables set.

When i restart the container in docker, i have exactly the same outpout:

INFO Set uid to user 0 succeeded
331 INFO supervisord started with pid 1
334 INFO spawned: 'php' with pid 9
Auth: no authentication parameters supplied
Illuminate\Database\QueryException 
SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: *** , No authentication parameters supplied))

and after 4 try i have this final outpout:

154 INFO exited: php (exit status 1; not expected)
155 INFO gave up: php entered FATAL state, too many start retries too quickly

the mysql service work perfectly, it's just dont have the credential to create the user.

Do you have any idea what i missing here?

0 likes
0 replies

Please or to participate in this conversation.