No such file or directory
makros opened this issue · 1 comments
makros commented
Hi @nanoninja and congrats for the code.
I'm trying to instance a PDO connection using the example you've wrote on readme. When trying to query I've got this error:
Warning: mysqli::__construct(): (HY000/2002): No such file or directory in
Problem is related with permissions over local directory ./data/db/mysql but working with windows 10 Pro don't know what to solve permissiopns issue.
My technical specs:
- Windows 10 pro + HyperV
- Docker version 17.09.0-ce
- docker-compose version 1.16.1
makros commented
Answer myself. In my Database settings I have an error on host name. When calling 'mysql:host=mysql;dbname=test;charset=utf8;port=3306'; the name for host must be same as mysql service name; for this dockerimage, the name must be mysqldb
'mysql:host=mysqldb;dbname=test;charset=utf8;port=3306';