go-gin-example
go-gin-example copied to clipboard
sql: unknown driver "mysql" (forgotten import?)
Every time I ran it, it shows sql: unknown driver "mysql" (forgotten import?)
And how to change it postgresql?
Every time I ran it, it shows
sql: unknown driver "mysql" (forgotten import?)
And how to change it postgresql?
you can add import _ "github.com/jinzhu/gorm/dialects/mysql"
to fix that error