Skip to content

SQLite file access and permissions on macOS

Selecting a database in a macOS file dialog grants TableAI access to it. Your account must also have permission to read and change the file.

Cannot access the SQLite database file. Select it using Browse to grant file access.
SQLite could not open this database with file access alone. It may use journal or WAL files stored beside it. Allow access to the containing folder, then try again.

Locate the main database file and its containing folder in Finder. Use Get Info to check your account’s permissions for both. A writable database can need folder access to create journal or WAL files.

Grant SQLite file access and permissions on macOS

Section titled “Grant SQLite file access and permissions on macOS”
  1. Open the connection’s Edit form.
  2. Click Browse… and select the database file again.
  3. Click Test.

Entering a path or importing a connection URL does not grant macOS file access. Use the file picker even when Database Path already contains the correct path.

If the test requests folder access:

  1. Click Allow Folder Access… in the connection error dialog.
  2. Select the folder that contains the database.
  3. Confirm access in the folder dialog.

TableAI repeats the test after the folder selection. It remembers this access on your Mac. After syncing a connection to another Mac, select the database there to grant access on that device.

For a remote SSH connection, the host checks the SSH user’s file and folder permissions. Ask the file owner or administrator to check access on that host. Selecting a folder on your Mac grants access only on your Mac.

For a file shared with Docker, check the volume’s read/write setting and file ownership. Also check whether the disk or mounted filesystem permits writes.

Use read-only database troubleshooting when reads succeed but writes fail. Use lock troubleshooting when SQLite reports a lock. For other failures, follow connection troubleshooting.