> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tablepro.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing Connections

> Create, organize, and switch database connections

Press `Cmd+N` anywhere in the app to start a connection. **New Connection…** on the welcome window does the same, and the **Import** menu under it takes one from a URL, [another client](https://docs.tablepro.app/features/connection-sharing.md), an exported file, or a [project folder](https://docs.tablepro.app/features/project-folder-import.md). Saved connections fill the right side of that window. The search field in its toolbar, focused by `Cmd+F`, matches name, host, database, username, type, tag and group. The window keeps one size and remembers where you left it on screen. Until you save a connection, that side offers **Open Sample Database** instead, plus **Import from Other App…** when a client TablePro imports from is installed.

![Welcome window with the app version and New Connection, Open File and Import on the left, and a search field over an empty connection list offering the sample database](https://mintcdn.com/ngquct/A2JYRhO7PnkYuaLI/images/welcome-screen.png?fit=max\&auto=format\&n=A2JYRhO7PnkYuaLI\&q=85\&s=4f1ec2820787c9e56c0333e16589b7de)

Welcome window

## Create a connection

**1. Pick a database type**

The **Choose a Database** sheet groups drivers as Relational, Document, Key-Value, Analytical, Wide-Column, Cloud Native, Coordination & Config, and Other, and filters as you type. Picking a driver badged **Not Installed** offers the download before the editor opens. See [Plugins](https://docs.tablepro.app/features/plugins.md).

**2. Fill in the connection details**

The editor opens on **General**, which holds the host, port, and credentials, with the cursor in **Host**. The other panes in its sidebar hold the transport, SSL, appearance, Safe Mode and the rest; see [Connection form](https://docs.tablepro.app/connections/connection-form.md).

**3. Click Test Connection**

The result shows beside the button, such as **Connected to MySQL 8.4.3 in 38 ms**. A failed test names the step that failed, and its info button opens the driver's own message. For errors the driver recognizes a diagnostic sheet appears instead, with suggested fixes and **Copy Diagnostic Info**.

**4. Click Save & Connect**

The connection is saved and the window opens on it. **Save** alone keeps it without connecting.

![Database type chooser](https://mintcdn.com/ngquct/HRvbGQYlboZC9MQP/images/database-type-chooser.png?fit=max\&auto=format\&n=HRvbGQYlboZC9MQP\&q=85\&s=b7a8d56de2be34344e8b4e2e4e9e5a25)

Database type chooser

Every driver's default port, and which of SSH tunnel, SSL/TLS, Cloudflare Tunnel, Cloud SQL Proxy, and SOCKS Proxy it accepts, is in the [connection form reference](https://docs.tablepro.app/connections/connection-form.md#which-drivers-get-which-transports).

### Import from URL

Paste a connection string instead of typing the fields. Click **Import from URL…** in the chooser sheet footer, paste, check the parsed preview, and click **Import**. The editor opens filled in, ready to save. A URL pasted into **Host** in an open editor fills it the same way; see [Pasting a connection URL](https://docs.tablepro.app/connections/connection-form.md#pasting-a-connection-url). Schemes, query parameters, and the `+ssh` form are in the [Connection URL Reference](https://docs.tablepro.app/connections/urls.md).

![Import from URL](https://mintcdn.com/ngquct/4ei5KGhInZes6i6b/images/import-from-url.png?fit=max\&auto=format\&n=4ei5KGhInZes6i6b\&q=85\&s=3d95a370c1e284be0f93c7a9f510a176)

Import from URL sheet with parsed preview

> [!NOTE]
>
> Special characters in passwords (`@`, `#`, `%`) need percent-encoding. `p@ssword` becomes `p%40ssword`.

### Open a URL without saving anything

```bash theme={null}
open "postgresql://user:pass@host:5432/dbname"
```

A confirmation alert names the target first. Matching a saved connection on type, host, port, database, and username reuses it; otherwise the session is temporary and never joins your connection list, and the URL's password stays in memory rather than reaching the Keychain. [Confirmation and trusted links](https://docs.tablepro.app/connections/urls.md#confirmation-and-trusted-links) covers **Always Allow** and how to revoke it.

## Organize connections

The **Appearance** pane of the connection editor holds **Icon**, **Color**, **Tags** and **Group**. Give two connections to the same engine different icons, such as a flame for production, to tell them apart at a glance. The color tints the toolbar while the connection is open.

![The Appearance pane with an Icon well, a Color menu, a Tags field and a Group menu](https://mintcdn.com/ngquct/HRvbGQYlboZC9MQP/images/connection-customization.png?fit=max\&auto=format\&n=HRvbGQYlboZC9MQP\&q=85\&s=78a7c62d00cabc81c8fb55bdc05999e7)

Color, tags and group on the Appearance pane

> [!TIP]
>
> Red for production, green for development. On production, set **Safe Mode** to **Read-Only** on the **Safe Mode** pane to block accidental writes. See [Safe Mode](https://docs.tablepro.app/features/safe-mode.md).

| | How it works |
| - | - |
| **Groups** | Folders in the connection list, nested up to three levels. Choose **File > New Group…**, or right-click empty space for **New Group…**. Right-click a group for **Rename**, **Edit Group…**, **New Subgroup…**, **Color**, **Move Group To**, and **Delete Group…**. **Edit Group…** changes the name, icon, color and parent group in one sheet. Deleting a group deletes its subgroups too and leaves the connections inside ungrouped rather than deleted |
| **Tags** | Several per connection, each with a name and color. Choose tags from **Filter by Tag** in the **View Options** menu, or on macOS 15 and later type a tag's name in the search field and pick it. The tags you filter by show in a bar above the list: click one to stop filtering by it. With two or more chosen, **Match** switches between any and all of them, and **Clear Filters** removes them |
| **Favorites** | Right-click a connection and choose **Add to Favorites**, or drag it onto the **Favorites** header. Favorites gather in a section at the top while the connection keeps its place in its group |
| **Projects** | One project per product, each holding groups and connections. Choosing one from the pop-up button at the leading edge of the toolbar narrows the list, its search, **Favorites** and **Recent** to it. See [Projects](https://docs.tablepro.app/connections/projects.md) |
| **Recent** | The five connections you opened last, favorites left out. Right-click one for **Remove from Recent**, or the section header for **Clear Recent**. To hide the section, turn off **Show recent connections** in [Connection settings](https://docs.tablepro.app/customization/connection-settings.md#recent-connections) |

A connection's icon, group, tags, and favorite sync through iCloud, and so does a group's icon, to the iPhone and iPad app as well, unless it is marked local only. See [iCloud Sync](https://docs.tablepro.app/features/icloud-sync.md).

### Arrange the list

Drag connections and groups into a group, or onto the **Connections** header to take them out of every group. Choose the order under **View > Sort Connections By** or **Sort By** in the **View Options** menu: **Manual**, **Name**, **Database Type**, or **Last Connected**. Dragging to a spot between rows needs **Manual**; in the other orders a drop files the connection into the group and the sort places it. **Edit > Undo** puts a move back.

To rename a connection or group, select it and choose **File > Rename**. Press `Return` to keep the new name or `Escape` to restore the old one.

The sort order and the Recent section, shown or hidden, stay on this Mac.

## Switch connections and databases

Press `Ctrl+Cmd+C` for **Switch Connection**. Whatever is already open sits at the top, then your favorites and, while **Show recent connections** is on, the connections you opened last. The rest are listed under the group they belong to, a nested group carrying its full path. Arrow keys move, `Return` switches the window to that connection, and `Cmd`-click opens a saved one in a window of its own. Typing searches every group at once and collapses the matches into a single list.

Switching leaves the query tab you were in on its own connection. To take it with you, press `Ctrl+Option+Cmd+C` for **Move Tab to Connection…** instead. See [Moving a query tab to another connection](https://docs.tablepro.app/features/tabs.md#moving-a-query-tab-to-another-connection).

A footer under that list names the server the window's connection reached, such as PostgreSQL 17.2, and the transport it runs on. On an SSH tunnel or a SOCKS proxy it also carries the bytes that have crossed since the transport opened, received and sent, with the current rate beside each direction while something is moving. While the connection is connecting, reconnecting or lost, the footer shows that state in place of the byte counts.

The rest show their name alone. Cloudflare Tunnel, Cloud SQL Auth Proxy and Tunnel Command each run a separate binary that holds the connection end to end, a [remote database file](https://docs.tablepro.app/connections/remote-database-files.md) is fetched once and then read from disk, and a direct connection's socket belongs to the database driver.

**Open Database** (`Cmd+K`) moves to another database on the same server.

![Database list with the current database checked](https://mintcdn.com/ngquct/tXWaltqW4Zqkau0T/images/database-switcher-toolbar.png?fit=max\&auto=format\&n=tXWaltqW4Zqkau0T\&q=85\&s=987b548e0ba99ee9a761b36c2933a9dc)

Database switcher in toolbar

Leaving **Database** empty on MySQL, MariaDB, MongoDB, SQL Server, and ClickHouse browses every database the user can reach. PostgreSQL and Redshift need one to connect at all: use `postgres` (Redshift: `dev`) and switch with `Cmd+K`. System databases such as `mysql`, `information_schema` and `master` sit at the end of the switcher under **System**. To hide the rest, choose **View > Filter Databases** and select the ones you want; the choice is saved per connection and never hides a system database from the switcher. **View > Filter Schemas** does the same for the schemas of the database you are in. See [Filtering schemas](https://docs.tablepro.app/features/connection-window.md#filtering-schemas).

## When a connection drops

A tunnel or proxy that dies under a connection, or a server that stops answering the [health check](https://docs.tablepro.app/connections/connection-form.md#connection-health), leaves the tabs and their rows on screen. A bar above them reads **Reconnecting to \<name> (1 of 10)** with the cause underneath, such as **SSH tunnel disconnected.**, and the count goes up with each try.

The first try comes 2 seconds after the drop, then 4 and 8, doubling to 2 minutes between tries: 10 tries in about 10 minutes. **Cancel** on the bar stops the tries at once. When the tries run out, or you cancel, the pane reads **Disconnected from \<name>** with the reason and a **Reconnect** button, and the tabs come back once it connects.

Waking the Mac from sleep checks the tunnel of every open connection, and each one that died reconnects alongside the others rather than in turn.

A new session starts empty. When the old one held an open transaction, or something your statements set up there, such as a temporary table, a `SET` value, a user variable, a prepared statement, a cursor, a session lock or a `LISTEN`, the next statement you run on that database is refused once with a message naming what is gone: one you run in a query tab, an Explain, or one an assistant or an MCP client sends. Set it up again, then run your statements. The message names the kinds only, never your statements or their values. Startup commands run again on every reconnect, so they never count, and neither does a routine you call. A **Reconnect** you choose yourself reports only a lost transaction. The first change TablePro writes for you there, such as a grid save, an import or a structure change, is refused once with the same message, since it would have run inside the lost transaction; run it again to write it on its own. Neither one uses up the other's message. Work on a temporary table that went with the old session is refused until you create it again in a query tab, so an edit made for it cannot reach the real table it hid.

The connections strip, the welcome window and the connection switcher mark a reconnecting connection with a spinner and a lost one with a crossed-out bolt. [Connection state](https://docs.tablepro.app/features/workspace-rail.md#connection-state) lists every mark. Hover one to read the cause.

On the strip's right-click menu and in the **Database** menu, the connection command follows the state: **Connect**, **Reconnect**, **Stop Connecting** or **Stop Reconnecting**. The welcome window's right-click menu offers **Reconnect** for a lost connection and **Connect** for the rest. **Disconnect** stays on all three menus while a connection reconnects or is lost, and ends it without waiting for the next try.

## Edit, delete, and where it all lives

Right-click a connection to edit or delete it, or select it and press `Delete`. Deleting asks first and removes the saved settings, nothing on the server. Pressing `Delete` on a row under **Favorites** or **Recent** only takes it out of that section. Edits apply on the next connect.

Connections are stored in `~/Library/Application Support/TablePro/connections.json` with their passwords in the macOS Keychain, so copying that file to another Mac restores the connections without the passwords. Each save keeps the file it replaces as `connections.json.backup`. A connection this version cannot read is kept as it is and the others load; it stays in the file, or moves to `connections.json.unreadable-records` when the file changed outside TablePro. A file that no longer reads as a list is restored from the backup, and the damaged copy is kept as `connections.json.unreadable`.

Right-clicking the Dock icon lists saved connections under **Open Connection**: those of the active [project](https://docs.tablepro.app/connections/projects.md), or all of them in **All Connections**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.