Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经做到了chmod 777 slqite.db。有谁知道什么问题?
chmod 777 slqite.db
Ffinally我找到了答案:
sqlite3 库也需要对包含它的目录具有写权限,可能是因为它需要创建一个锁定文件。
所以我用sql插入数据是没有问题的,但是通过web cgi,fastcgi等)插入数据就会出错。
只需向目录添加写权限。