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.Check the file and folder
Section titled “Check the file and folder”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.
Keep companion files such as -journal, -wal and -shm with the database. Deleting them to clear an error can lose data.
Grant SQLite file access and permissions on macOS
Section titled “Grant SQLite file access and permissions on macOS”- Open the connection’s Edit form.
- Click Browse… and select the database file again.
- 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:
- Click Allow Folder Access… in the connection error dialog.
- Select the folder that contains the database.
- 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.
Check remote or mounted files
Section titled “Check remote or mounted files”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.
If access still fails
Section titled “If access still fails”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.