Change SQLite database mode to read-write

前端 未结 14 606
盖世英雄少女心
盖世英雄少女心 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条回答
  •  一个人的身影
    2020-12-13 02:24

    On Ubuntu, change the owner to the Apache group and grant the right permissions (no, it's not 777):

    sudo chgrp www-data 
    sudo chmod 664 
    

    Update

    You can set the permissions for group and user as well.

    sudo chown www-data:www-data 
    

提交回复
热议问题