Open ashraf-kabir opened 1 week ago
- 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:ashraf@127.0.0.1:3306/sakila postgresql://ashraf:ashraf@172.17.0.2/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:ashraf@host.docker.internal:3306/sakila postgresql://ashraf:ashraf@172.17.0.2/pagila
- 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:ashraf@127.0.0.1:3306/sakila postgresql://ashraf:ashraf@172.17.0.2/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:ashraf@host.docker.internal:3306/sakila postgresql://ashraf:ashraf@172.17.0.2/pagila
I got the same error.
pgloader version "3.6.10~devel" compiled with SBCL 2.2.9.debian
docker run --rm -it ghcr.io/dimitri/pgloader:latest pgloader mysql://ashraf:ashraf@127.0.0.1:3306/sakila postgresql://ashraf:ashraf@172.17.0.2/pagila
ERROR mysql: Failed to connect to mysql at "localhost" (port 3306) as user "ashraf": Condition USOCKET:CONNECTION-REFUSED-ERROR was signalled.