SQLite Forum

Is write permission required for read-only connections on a WAL database?
Login
You might need to set the `SQLITE_OPEN_READONLY` flag on the `sqlite3_open_v2()` call to prevent SQLite from trying to create the `-wal` and `-shm` files, which will fail if the reader can't write to the directory holding the DB file.