kasperisager / php-dockerized

Dockerized PHP development stack: Nginx, MySQL, MongoDB, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch and RabbitMQ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to connect to mysql

geshan opened this issue · comments

how do I connect to the mysql host?

From within the Nginx container?

Either way, I left the bit about container linking out of the instructions as it's covered by the Docker docs: http://docs.docker.com/userguide/dockerlinks/.

All other containers (MySQL, MongoDB, etc.) are now linked to the front container by default (a61011a). This means that if you wanted to connect to something like MySQL from within the front container you'd simply specify mysql as the host, e.g. mysql://mysql:3306/your-db

No problem! Let me know if it works out.