Change SQLite database mode to read-write

前端 未结 14 604
盖世英雄少女心
盖世英雄少女心 2020-12-13 01:35

How can I change an SQLite database from read-only to read-write?

When I executed the update statement, I always got:

SQL error: attempt to wr

14条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 02:26

    On Linux, give read/write permissions to the entire folder containing the database file.

    Also, SELinux might be blocking the write. You need to set the correct permissions.

    In my SELinux Management GUI (on Fedora 19), I checked the box on the line labelled httpd_unified (Unify HTTPD handling of all content files), and I was good to go.

提交回复
热议问题