golang中使用sqlite时遇到了下面的报错
[error] failed to initialize database, got error unable to open database file: out of memory (14)
panic: unable to open database file: out of memory (14)
这通常是由于没有文件权限导致的,比如我这儿的dsn是,test/test.db?_busy_timeout=5000,由于test这个目录并不存在,所以创建test目录即可解决该问题












评论(0)