Skip to content

Open a SQLite database file

Choose a local file with Browse…, or enter its path on an SSH host with Connect via SSH enabled. To start with an empty database, create a new file instead. For the short version, see how to view a SQLite database on a Mac.

Locate the existing database file. The local file picker accepts .sqlite, .sqlite3 and .db files. For a database on your Mac, you do not need a server address or database credentials.

For remote access, obtain:

  • The SSH server address, port and user.
  • An SSH password or private key, with its passphrase if required.
  • The absolute database path on that host.

The SSH account must allow command execution and have access to the database file and its folder. The host needs sqlite3 installed and an existing database file.

  1. Choose File › New Connection….
  2. Select SQLite in Driver.
  3. Enter a Name for the connection.
  4. Leave Connect via SSH off.
  5. Click Browse… and select the database file.
  6. Click Test.
  7. Click Save & Connect when the test succeeds.
SQLite connection form with a selected local database and Browse button
  1. Create a connection with SQLite selected in Driver.
  2. Enter a Name for the connection.
  3. Enable Connect via SSH.
  4. Enter the absolute remote path in Database Path.
  5. Enter the SSH Server, Port and User.
  6. Enter the SSH Password, or enable Use SSH Key and select the private key with Browse….
  7. Enter Key Passphrase if the key requires one.
  8. Click Test.
  9. Verify the host fingerprint if prompted, using the SSH host verification guide.
  10. Click Save & Connect when the test succeeds.

TableAI runs SQLite commands on the remote host over SSH. Use the file path as that host sees it, rather than a path on your Mac. SQLite file connections have no database TLS setting.

sqlite3 is not installed on the SSH host
SSH account does not allow remote command execution. Remote SQLite requires an SSH user that can run commands like sqlite3.

For either message, ask the host administrator to check the remote environment. For a file-access message, follow file access and permissions. For authentication, host-key or network failures, see SSH troubleshooting.

If the SSH host is on your local network, check macOS Local Network permission.