Skip to content

Create and manage database connections

For a server database, you need its host, port, database name, and database account. For a local SQLite database, start with Open a SQLite file.

  1. Choose File › New Connection… or press ⌘N.
  2. Select your database in Driver.
  3. Enter a Name that you will recognize in the Connections list.
  4. Fill in Host, Port, Database, and User with the details from your server owner or hosting service.
  5. Choose a password option from the menu beside Password, as described below.
  6. Enter the password or Password Command if your option requires it.
  7. Configure SSL/TLS or an SSH tunnel if your setup requires them.
  8. Choose a Query Protection mode. See query guardrails for the approval rules.
  9. Click Test and check the result.
  10. Click Save & Connect to save the connection and open the database.

Use Save instead if you want to store the details without opening the database. For Group and Environment, see Organize saved connections.

Connection form showing Driver, Name, database login fields, and the Test and Save buttons
Option What to enter
Store in keychain Enter Password. TableAI saves it in macOS Keychain.
Ask every time Supply the password when TableAI prompts you to connect.
No password Leave the password empty for an account that does not require one.
Command Line Enter a Password Command that returns the password. TableAI runs it when connecting.

Use the URL supplied by your hosting service instead of filling in each server field.

  1. Click Import from URL beside Connection Details.
  2. Paste the URL into the Import Connection URL dialog.
  3. Click Import.
  4. Review the imported driver, server details, password option, and SSL Mode.
  5. Continue from Test in the connection steps above.

Right-click a connection in the Connections list and choose Edit to reopen its form. Choose Duplicate to make a separate saved connection from the same details. Check the host, database, and credentials before connecting to the copy.

Use Connection failed to check the server, network access, and credentials.

On macOS 15 or later, allow Local Network access when macOS prompts you to connect to a local-network host. If you previously refused access, follow the Local Network permission steps before trying again.

Open a table with Browse and search. For setup details specific to your database, use its guide: PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, or Amazon Redshift.