PHP can not resolve mysql container name under certain circumstances

后端 未结 2 2109
遇见更好的自我
遇见更好的自我 2020-12-22 06:55

I have legacy PHP application. It used mysqli to make mysql things. So in config I have DSN string to connect to mysql service. Like that

mysql://username:pass

2条回答
  •  不知归路
    2020-12-22 07:33

    docker-compose rm -v use and delete MySQL volume.

    Volumes:

    • ./docker/mysql:/var/lib/mysql -> pathmysql
    • /etc/timezone:/etc/timezone:ro
    • /etc/localtime:/etc/localtime:ro

提交回复
热议问题