惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
腾讯CDC
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
量子位
F
Fortinet All Blogs
G
Google Developers Blog
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
D
Docker
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
M
MIT News - Artificial intelligence
博客园 - 【当耐特】

SQLite

sqlite 性能是否够用?看上去并发似乎还是很强 - V2EX SQLite 开启 WAL 后,我的同步服务吞吐量提升了 3 倍 分享适合高并发场景的 SQLite 设置 在什么情况下一定要放弃 SQLite 采用 MySQL 呢? SQLite 背后的故事 应该怎么理解 rowid 在 sqlite 中的使用 macOS 上有什么好用的 SQLite GUI ? SQLite In-Memory 作为数据缓存代替 Java Object 什么时候调用 sqlite.close()呢 回复“什么场景下用 SQLite”的主题并分享一个年收入 60 万刀的技术栈 大家有用 Sqlite 的吗,都是什么场景下要用这个,能说一两点非要用它的理由最好啦 SQLite Viewer Web App 本地数据库 除了 SQLite 还有什么好用的. 请教一个方案,边缘设备的 sqlite 数据如何才能获取到 有人知道怎么在 termux 上编译 sqlcipher 吗? 求一个数据库设计问题! SQLite 被曝漏洞,影响范围很大 两个读写 SQLite 数据库的浏览器扩展 How SQLite is tested 用sqlite3作为论坛的数据库行不行? About Sqlite 之前的一篇笔记 如何把一个2G的sqlite数据库分割成小的? Base 2.0
如果需要寫入數據, 不僅數據文件要有寫入權限, 數據文件所在...
013231 · 2012-06-21 · via SQLite

"When a process wants to change a database file (and it is not in WAL mode), it first records the original unchanged database content in a rollback journal. The rollback journal is an ordinary disk file that is always located in the same directory or folder as the database file and has the same name as the database file with the addition of a -journal suffix. The rollback journal also records the initial size of the database so that if the database file grows it can be truncated back to its original size on a rollback."
所以呢, 如果數據文件所在的目錄沒用寫權限, journal文件無法創建, 就無法寫入數據了.
在Python sqlite3 Package中, 會拋出一個頗有誤導性的Error:
OperationalError: unable to open database file
然而真正的錯誤原因並不是無法打開數據文件, 而是無法創建日誌文件.
被這個問題折騰了半天...