Category : go-gorm

I’m trying connect mysql server from docker using golang gin gorm. The build itself has succeeded, but as shown in the title, the following error has been issued. panic: dial tcp 127.0.0.1:3306: connect: connection refused Trying to connect in this way func dbConnect() *gorm.DB { db, err := gorm.Open(“mysql”, “docker:[email protected]/godocker”) if err != nil { ..

Read more