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.
Create a database connection
Section titled “Create a database connection”- Choose File › New Connection… or press ⌘N.
- Select your database in Driver.
- Enter a Name that you will recognize in the Connections list.
- Fill in Host, Port, Database, and User with the details from your server owner or hosting service.
- Choose a password option from the menu beside Password, as described below.
- Enter the password or Password Command if your option requires it.
- Configure SSL/TLS or an SSH tunnel if your setup requires them.
- Choose a Query Protection mode. See query guardrails for the approval rules.
- Click Test and check the result.
- 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.

Choose how to supply the password
Section titled “Choose how to supply the password”| 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. |
Import a connection URL
Section titled “Import a connection URL”Use the URL supplied by your hosting service instead of filling in each server field.
- Click Import from URL beside Connection Details.
- Paste the URL into the Import Connection URL dialog.
- Click Import.
- Review the imported driver, server details, password option, and SSL Mode.
- Continue from Test in the connection steps above.
Remove passwords before you share a connection URL. Keep URLs with credentials out of screenshots and support reports.
Change a saved connection
Section titled “Change a saved connection”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.
If it does not connect
Section titled “If it does not connect”Use Connection failed to check the server, network access, and credentials.
Allow access to the local network
Section titled “Allow access to the local network”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.
Next steps
Section titled “Next steps”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.