We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
将项目下载到本地后,go run main.go时提示 doc.go:76: sql: unknown driver "mysql" (forgotten import?) exit status 1,在Google上查了一些资料,都是提示导入“database/sql”后需要同时导入_ "github.com/go-sql-driver/mysql",但我尝试过后还是同样的报错.
The text was updated successfully, but these errors were encountered:
抱歉这个git用了2fa折腾了我好久。 你是不是用了mysql数据库?我的文件里没有doc.go啊。
Sorry, something went wrong.
用的是一个新的VMware虚拟机,系统是Windows10,beego用的是V2版本,没有改配置,先是报错没有gcc,解决之后就提示这个错误了,在Google和百度上找到相似问题的解决方案都是提示要导入MySQL的驱动,但是这个问题并没有解决。doc.go似乎是导入的某个包里面的文件,具体是那个包我得回去用家里的电脑再看看了。
可能是哪个包管理出了问题?
我测试是go版本的问题,go1.21会出现这个错误,go1.19就没问题
No branches or pull requests
将项目下载到本地后,go run main.go时提示 doc.go:76: sql: unknown driver "mysql" (forgotten import?) exit status 1,在Google上查了一些资料,都是提示导入“database/sql”后需要同时导入_ "github.com/go-sql-driver/mysql",但我尝试过后还是同样的报错.
The text was updated successfully, but these errors were encountered: