odan / slim4-skeleton

A Slim 4 Skeleton
https://odan.github.io/slim4-skeleton/
MIT License
439 stars 80 forks source link

Docker mysql connection #73

Closed facundocasagrande closed 3 years ago

facundocasagrande commented 3 years ago

Hello This I don't think is a bug but I need help

I try to connect to a mysql server on another machine on the network, I change all the configuration files that I have found, but it always takes the address of the docker host.

Any help is appreciated

Captura de Pantalla 2021-07-05 a la(s) 13 32 03 Captura de Pantalla 2021-07-05 a la(s) 13 31 48
odan commented 3 years ago

It looks like the network connection to the mysql server works so far. But then mysql blocks the incoming connection because the remote host (the docker instance) is not granted. So make sure that the user externo exits and has permission for the host 192.168.4.104. See here

facundocasagrande commented 3 years ago

What a shame, it was a password error I must sleep better. Sorry