fideloper / docker-nginx-php

An Ubuntu, Nginx and PHP stack Built in Docker
361 stars 142 forks source link

mysql-client missing #3

Closed cordoval closed 10 years ago

cordoval commented 10 years ago

how are you supposed to connect to the db then?

fideloper commented 10 years ago

php-mysql is installed, which lets you connect to mysql via PHP. This container isn't meant to act as mysql's CLI client.

Since MySQL is presumably on different container, you can SSH into that container directly and use mysql client, or use a client on your own host. There's no reason to SSH into this container if you're goal is to use mysql-client.

(Most docker containers don't even let you SSH into them, but Phusion happens to. Keep that in mind tho, as that's a clue as to how Docker envisions it's usage - Each container is just a few processes being run, not a whole server).