go-todo-rest-api-example icon indicating copy to clipboard operation
go-todo-rest-api-example copied to clipboard

Could not connect database

Open raitalharehman opened this issue 6 years ago • 3 comments

2019/05/02 13:39:14 Could not connect database exit status 1

raitalharehman avatar May 02 '19 08:05 raitalharehman

Same issues, I am facing

rajendraarora16 avatar Oct 18 '19 08:10 rajendraarora16

Create username and password on mysql and configure the same on config.go

Create a database "todoapp" before running the app.

madhusudhanan-ms avatar Oct 23 '19 18:10 madhusudhanan-ms

You need attach dialect _ "github.com/jinzhu/gorm/dialects/mysql"

dutchakdev avatar Feb 18 '20 18:02 dutchakdev