【数据库连接】连接sqlite3报错:go-sqlite3 requires cgo to work. This is a stub

报错信息

powershell 复制代码
register db Ping default, Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

Windows解决办法

新建环境变量

新报错

powershell 复制代码
Failed to build the application: # runtime/cgo
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

安装GCC

官网:https://gitcode.com/mattn/go-sqlite3/tree/master?utm_source=csdn_github_accelerator\&isLogin=1

下载

安装



这样就可以解决了!

相关推荐
廋到被风吹走6 小时前
【数据库】【MySQL】InnoDB外键解析:约束机制、性能影响与最佳实践
android·数据库·mysql
掘根6 小时前
【消息队列】交换机数据管理实现
网络·数据库
Logic1016 小时前
《Mysql数据库应用》 第2版 郭文明 实验6 数据库系统维护核心操作与思路解析
数据库·sql·mysql·学习笔记·计算机网络技术·形考作业·国家开放大学
AI Echoes7 小时前
构建一个LangChain RAG应用
数据库·python·langchain·prompt·agent
@nengdoudou7 小时前
KingbaseES支持 mysql 的find_in_set函数
数据库·mysql
摇滚侠8 小时前
面试实战 问题三十三 Spring 事务常用注解
数据库·spring·面试
梁萌8 小时前
保姆级的MySQL执行计划(Explain)解读
数据库·mysql·explain·执行计划
JIngJaneIL8 小时前
基于Java+ vue智慧医药系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
+VX:Fegn08958 小时前
计算机毕业设计|基于springboot + vue图书管理系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计
杨云龙UP9 小时前
MySQL 8.0.x InnoDB 写入链路优化:Redo Log 与 Buffer Pool 扩容与缓冲区调优实战记录-20251029
linux·运维·数据库·sql·mysql