Closed mxdios closed 2 years ago
please make sure that your ezbookeeping container and mysql container/instance are in the same network,
@mayswind Yes, a terminal that executes docker-compose up
on the same server can connect to mysql
By default, the network of each docker container is isolated, and if you access "localhost" in ezbookkeeping container, you can only access the port in the current container. You can enter into the ezbookkeeping container and check whether the 3306 port is available.
@mayswind Thank you very much, the problem was solved, it is for this reason. Thank you
docker-compose.yml
The error log:
2022-10-13 14:37:32 [ERROR] [server.startWebServer] update database table structure failed, because dial tcp 127.0.0.1:3306: connect: connection refused 2022/10/13 14:37:32 Failed to run ezBookkeeping with [/ezbookkeeping/ezbookkeeping server run]: dial tcp 127.0.0.1:3306: connect: connection refused