macOS - DevLake ERROR
: >>> Mysql failed to connect
#800
Labels
devops
Something about CI/CD (devops)
type/feature-request
This issue is a proposal for something new
Lake / Docker / Mac OS + MySQL
Users / Developers in a Mac OS Environment are unable to start Lake with
docker-compose up
due to a bad MySQL TCP Connection string. To resolve this issue for Mac OS and potentially other environments, please see the steps below.SOLUTION STEPS
docker-compose.yml
SETcontainer_name
container_name: lakeMYSQL
DB_URL=merico:merico@tcp(lakeMYSQL:3306)/lake?charset=utf8mb4&parseTime=True
To Reproduce
Steps to reproduce the behavior:
lake
) runningmain
branchdocker-compose up
to start services/app/models/init.go:31
Expected behavior
DevLake should startup successfully and connect to the MySQL Service instance when running
docker-compose up
instead of throwing panic errors.Screenshots
BEFORE
AFTER PROPOSED SOLUTION
Additional context
Please see a similar issue below on StackOverflow for addtional context with regard to Go and Docker.
https://stackoverflow.com/questions/52504318/unable-to-connect-to-mysql-server-with-go-and-docker-dial-tcp-127-0-0-13306
The text was updated successfully, but these errors were encountered: