ERROR mysql: Failed to connect to mysql at "localhost" (port 3306)
- pgloader version:
pgloader version "3.6.10~devel" compiled with SBCL 2.2.9.debian - Command:
docker run --rm -it ghcr.io/dimitri/pgloader:latest pgloader mysql://ashraf:[email protected]:3306/sakila postgresql://ashraf:[email protected]/pagila - Error:
ERROR mysql: Failed to connect to mysql at "localhost" (port 3306) as user "ashraf": Condition USOCKET:CONNECTION-REFUSED-ERROR was signalled. - Screenshot:
- pgloader version:
pgloader version "3.6.10~devel" compiled with SBCL 2.2.9.debian- Command:
docker run --rm -it ghcr.io/dimitri/pgloader:latest pgloader mysql://ashraf:[email protected]:3306/sakila postgresql://ashraf:[email protected]/pagila- Error:
ERROR mysql: Failed to connect to mysql at "localhost" (port 3306) as user "ashraf": Condition USOCKET:CONNECTION-REFUSED-ERROR was signalled.- Screenshot:
In your docker command, try replacing "localhost/127.0.0.1" with "host.docker.internal". So it will instead become:
docker run --rm -it ghcr.io/dimitri/pgloader:latest pgloader mysql://ashraf:[email protected]:3306/sakila postgresql://ashraf:[email protected]/pagila
Reference: https://docs.docker.com/desktop/features/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
- pgloader version:
pgloader version "3.6.10~devel" compiled with SBCL 2.2.9.debian- Command:
docker run --rm -it ghcr.io/dimitri/pgloader:latest pgloader mysql://ashraf:[email protected]:3306/sakila postgresql://ashraf:[email protected]/pagila- Error:
ERROR mysql: Failed to connect to mysql at "localhost" (port 3306) as user "ashraf": Condition USOCKET:CONNECTION-REFUSED-ERROR was signalled.- Screenshot:
In your docker command, try replacing "localhost/127.0.0.1" with "host.docker.internal". So it will instead become:
docker run --rm -it ghcr.io/dimitri/pgloader:latest pgloader mysql://ashraf:[email protected]:3306/sakila postgresql://ashraf:[email protected]/pagilaReference: https://docs.docker.com/desktop/features/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
I got the same error.
