beego框架 sql: unknown driver "mysql" (forgotten import?)

在使用beego框架接入mysql时需要在main.go中引入自己使用的mysql驱动

 "github.com/go-sql-driver/mysql" // import your used driver
否则会报sql: unknown driver "mysql" (forgotten import?)

你可能感兴趣的:(sql,driver,driver,Go,m,unknown)