hello guys. can someone help me on this? <https://...
# prisma-whats-new
m
you can access the container with
$ docker exec -t -i local_graphcool-db_1 /bin/bash
Inside the container you can access the mysql with
mysql -u root -p
The password is graphcool
p
hi melv. this is working nicely, thanks
can you help me further on, and tell me how access the data via an mysql tool. like heidi sql, iam using sequel pro and reach into the docker?
m
maybe there is a better way but with this you can get the ip of the container which you can use as hostname
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' local_graphcool-db_1
Copy code
port is 3306
user: root
password: graphcool
database: graphcool
p
so i use the ip from the terminal line as host, and set the rest like descriped above. but still getting timeout on connect to ip. how did you figure out the host:port of 3306?
m
gc local ps
lists for the database container on ports
3306/tcp
so I used that.
p
thanks melv. its working at least in a shell. have a nice coding day