SqlOtter
← All documentationConnect & organize

Connect & organize

Connections, SSH, and saved profiles

Configure a server or SQLite file, test access, manage saved profiles, and confirm the database you opened.

What this feature does

The connection dialog combines TCP/IP and SSH settings, saved profiles, search, and environment templates. Testing, saving a profile, and opening a connection are separate actions.

When to use it

Use it for your first database, a saved connection, a jump host, or a local SQLite file. Connection files (.conn) have their own open/save commands.

Connected MySQL welcome workspace with local_mysql/hg in the title, hg in the database selector, the table tree, and Welcome to SqlOtter.
Real development-app workspace after a MySQL connection: local_mysql/hg identifies the target, hg is selected, and the table tree is populated. The welcome view remains visible until an object is opened. Database icons were updated to the current two-letter marks.

Before you start

Prepare the database type, reachable host and port, target database, and an account with the required permissions. SSH also needs a reachable jump host and authentication. SQLite needs a file path and an existing parent folder; its driver is local.

Default shortcuts

Workspace commands, fixed dialog keys, and actions without a dedicated default have different scopes.

Default shortcuts
ActionWindows / LinuxmacOSFocus and effect
New ConnectionCtrl+T⌘+TFrom the workspace, open connection setup; choose New inside the dialog for a fresh profile.
Open Connection file (.conn)Ctrl+O⌘+OWorkspace file command: select a .conn file and connect using its parameters. Saved Connections is opened through New Connection.
Save Connection file (.conn)Ctrl+Alt+S⌘+⌥+SWorkspace command exporting the active connection to a .conn file; this is separate from Save in the favorites dialog. The SQL editor has a colliding file-save default, so check focus and Settings.
Find in the connection dialogCtrl+F⌘+FSystem Find binding within the dialog: focus and select the search text. It is independent of the configurable workspace Find action.
Search / next matching targetEnter / ReturnEnter / ReturnWith the search input focused, start the search after text changes; subsequent presses advance. Use the up/down arrow buttons for previous/next.
Open the selected saved profileEnter / ReturnEnter / ReturnWith the saved list focused, connect the selected profile; double-click does the same. Check the target first.
Rename selected saved profileF2F2 (Fn may be needed)Fixed dialog key when received by the dialog; select the favorite first. Text inputs may consume keys.
Delete selected saved profileDeleteForward Delete (often Fn+⌫)Fixed dialog key, when not consumed by an input; opens the favorite-removal confirmation. Use the toolbar for an explicit target.
Cancel / close the dialogEscEscStandard dialog cancel; unsaved temporary New/Copy profiles are cleaned up. It does not undo a completed Save.
Save favorite, New / Copy / Refresh favoriteNo dedicated defaultNo dedicated defaultUse the dialog Save button and saved-profile toolbar; the .conn shortcuts above are separate workspace commands.
SSH, Paste From URL, SQLite Browse, Test, Benchmark All, colors and templatesNo dedicated defaultNo dedicated defaultUse the corresponding tabs, fields and buttons. Connect is the default dialog button, so Enter outside search/list can depend on focus.
  • Settings → Shortcuts controls workspace bindings; current customizations take precedence. macOS ⌘ means Command and ⌥ means Option.
  • Dialog Find follows the platform standard: Ctrl+F on Windows/Linux and ⌘+F on macOS. Its binding is separate from the workspace Find customization.
  • Fixed dialog keys depend on focus and are not all configurable. Prefer the named button when editing text or when a key is unavailable. These bindings are source-reviewed; full desktop keyboard acceptance remains pending.

How to use it

  1. Choose New Connection in the workspace toolbar or menu (Ctrl+T / ⌘+T). Choose New in Saved Connections for a fresh profile.
  2. Choose the database type and fill in TCP/IP details, or follow the SSH or SQLite section below.
  3. Review Tag Color, Workspace Template, and the optional comment. Test the current form and read the result.
  4. Choose Save to retain the profile or Connect to open the target; then confirm the connection name and selected database.

Configure TCP/IP and environment context

Use the right-hand TCP/IP form for a server connection. The capture shows local_mysql and a local MySQL target.

MySQL TCP/IP settings for local_mysql: 127.0.0.1, port 3306, database hg, root, masked password, tag colors, Auto (Local), comment, and complete Save, Cancel, Connect buttons.
Real connection-settings crop: local_mysql targets MySQL at 127.0.0.1:3306 / hg. The password is masked; Advanced Options shows Auto (Local) and the comment Local database test. Save, Cancel, and Connect are fully visible. Test Connection is in the separate action-bar crop below. Database icons were updated to the current two-letter marks. Historical screenshot; UI icons have been updated.
  1. Choose New in Saved Connections, enter a distinct connection name using letters, digits or underscores, then choose Database Type. Existing favorite names are edited through Rename.
  2. Enter Host, Port, Database Name, Username, and Password as required by the selected engine. In this capture they are 127.0.0.1, 3306, hg, root, and a masked password; use your own assigned account.
  3. Review Timezone and the options available for that engine. Enable SSL Required when the endpoint requires it. MySQL Local Infile and clear-text plugin options should only be enabled when specifically required.
  4. Choose a Tag Color. In Advanced Options, inspect Workspace Template: Auto infers an environment from the connection method, engine and host; choose a manual template when needed. Add a Connection Comment to explain the target.
  • The two Auto controls differ: Tag Color Auto chooses a random tag color; Workspace Template Auto shows the inferred template, such as Auto (Local). Finishing a Host edit can return the template to automatic recognition, so check it again.
  • Ports and visible fields depend on the engine (for example MySQL 3306, PostgreSQL 5432). Oracle exposes Service Name / SID / Role; Redis exposes its read-only and key-page controls; MongoDB allows an omitted database name. Use the controls actually shown for that type.

Connect through an SSH tunnel

Select SSH when the database must be reached through a jump host. SSH authentication and database authentication are configured separately.

  1. Fill in SSH Host, SSH Port (normally 22), and SSH Username under SSH Connection Settings.
  2. For password authentication, leave SSH Key empty and enter the SSH login password. For key authentication, use Browse to select the private key; enter its passphrase in SSH Password / Key Passphrase when the key is encrypted. An unencrypted selected key can use an empty passphrase.
  3. Under Database Connection Settings, choose the engine and fill in the database Host and Port as reachable from the SSH host, then its database name and database credentials.
  4. Review the environment template, then use Test Connection. After a successful result, choose Save or Connect according to the next section.
  • SSH Host and SSH Username are required, with either a private key or an SSH password. When a key is selected, the password field is used to decrypt that key; it is not a second database password.
  • SQLite and Snowflake do not offer the SSH tab in this connection flow. No dedicated default shortcut selects SSH or browses a key; use the tab and buttons.
  • An SSH tunnel changes network routing. Database permissions, TLS requirements, driver support, and target reachability still apply.

Fill fields with Paste From URL

Paste From URL reads a connection URL from the clipboard and fills supported fields. Inspect the populated form before testing.

  1. Copy a URL for the intended target, then choose Paste From URL on the TCP/IP or SSH form.
  2. Supported prefixes include mysql://, mysql+pymysql://, postgresql://, postgres://, sqlite:///, mongodb://, mongodb+srv://, redis://, and rediss://. rediss:// turns on SSL Required.
  3. The SSH form accepts ssh://ssh_user@ssh_host:22/db_user:db_password@db_host:db_port/database. Supply the SSH password or private key separately, then check the selected engine.
  4. Review the connection name, host, port, database, credentials, TLS, and environment template. Test the resulting form, then save or connect.
  • There is no dedicated default shortcut for Paste From URL. A parsed URL is a field-filling aid; it does not establish that every URI query option or multi-host/SRV setting is retained, nor that access will succeed.

Test, save, and connect

Choose the action that matches your intent. The test/benchmark controls and complete successful-result popup are shown below.

Complete Test Connection and Benchmark All buttons, including the recorded last-completed date.
Test Connection checks the current form; Benchmark All tests saved profiles. The last-completed date is historical feedback. Save / Cancel / Connect appear in the connection-settings image above. Historical screenshot; UI icons have been updated.
Complete Test Connection Result dialog with Information, Connection successful, and OK.
The complete Test Connection Result popup reports Connection successful. This establishes the shown test outcome; it does not establish a completed Save or Connect action. Historical screenshot; UI icons have been updated.
  1. Test Connection checks the current TCP/IP or SSH form. Read Test Connection Result and dismiss it with OK; a successful test does not open the database workspace.
  2. Save validates and retains a favorite without opening a new connection workspace. When changed settings affect existing sessions, review Update Existing Sessions, Save Favorite Only, or Cancel; the update choice can apply the new settings to existing session state.
  3. Connect validates the form and goes through the save flow if it has unsaved changes; cancelling that save stops the connection flow. After acceptance, the workspace opens or activates the matching target.
  4. Cancel or close ends the dialog and cleans up an unsaved temporary New/Copy item. A save already completed is retained.
  5. Benchmark All Connections tests all saved profiles sequentially. It records elapsed connection-test results and a last-completed date; successful rows can be green or orange and failures red. Read failures separately from search highlights.
  • Test Connection, Save favorite, and Benchmark All have no dedicated default shortcuts. Use their named buttons; Connect is the dialog default, and Enter can trigger different actions depending on focus.
  • Single and batch tests are mutually exclusive while running. Their elapsed times are connection-test measurements, not a query-performance benchmark.
  • Save Connection (.conn), available from the workspace, is a different file-export command with Ctrl+Alt+S / ⌘+⌥+S.

Manage Saved Connections

Saved Connections keeps reusable profiles on the left. It is separate from opening or exporting a .conn file.

  1. Single-click a favorite to load its settings. Check the right-hand form before connecting; double-click or Enter with the list focused connects the selected favorite.
  2. New starts a fresh temporary profile. Copy starts a separate variant; review all copied fields, then Save the profile you want to keep.
  3. Rename changes the selected profile name (F2 when the dialog receives it). Delete asks for confirmation before removing the saved favorite; it does not close existing sessions or delete database data.
  4. Refresh reloads the favorite list. Use Save after editing configuration; when prompted, choose whether existing sessions should also use the new settings.
  • Save favorite, New, Copy, and Refresh have no dedicated default key. Delete uses the fixed Delete key when an input has not consumed it; on a compact Mac keyboard forward Delete is often Fn+⌫.
  • Favorites persist connection parameters, color, comment and workspace-template identity with a stable connection UUID. New/Copy temporary entries need a completed Save to remain after cancellation.

Confirm the opened database context

After Connect, check the workspace before opening an object or running SQL. The overview screenshot shows a connected MySQL workspace.

  1. Read the connection name and database in the window title and the current database selector. The supplied example is local_mysql / hg.
  2. Confirm the selected environment template and its workspace appearance. The welcome view can remain visible even though the object tree is already loaded.
  3. Choose a table from the left-hand tree, or continue to the object-navigation guide to find a specific object.
  • The form and welcome workspace were supplied as separate captures; they show compatible visible targets, not a recorded end-to-end connection sequence. Use the workspace/table-opening controls; this confirmation has no separate default shortcut.

Open a SQLite file

SQLite uses a local database file rather than a server host and account. Its connected-state excerpts are shown separately below.

SQLite database selector with the visible file-path tail ts/temp/test.db and SQLite icon.
The SQLite selector displays a shortened path ending in test.db. Check this selected file before opening tables; Browse and file creation are separate steps. Database icons were updated to the current two-letter marks.
SQLite welcome workspace with a populated table tree, New/Open Connection, New Database, Open Table, and New Table.
The SQLite test.db workspace has a populated table tree and the welcome actions. The separate selector image shows the selected file context. Historical screenshot; UI icons have been updated.
  1. Open New Connection (Ctrl+T / ⌘+T), choose New if needed, and select SQLite as Database Type. Host, Port, Username, Password and the SSH tab are hidden.
  2. Set Database Name to the database file path, or use Browse to select it. Browse also supports a new filename and adds .db if the filename has no extension; the parent folder must already exist.
  3. Check the path carefully before Test, Save or Connect: validation opens the file and can create a missing database. Use :memory: only for an in-memory database tied to its connection lifetime.
  4. Test the file, then Save the favorite or Connect. Confirm the selected file in the database selector and the loaded table tree; the example filename is test.db.
  • SQLite Browse and file selection have no dedicated default shortcut. The screenshots establish an opened file workspace and the selector tail, while Browse and new-file creation remain source-reviewed.
  • An in-memory database is not a persistent file. The separate New Database flow creates a file and saves a favorite; it has a different OK-based dialog.

What to expect

The target database context opens, or an already-open matching tab becomes active. For MySQL, the supplied workspace shows local_mysql/hg, hg in the selector, and a populated table tree; SQLite has its own file context. A test-success popup alone does not open that workspace.

Limits and safety

  • Driver availability, server version, network routing, TLS, and account permissions determine whether a connection succeeds. An SSH route does not grant database privileges.
  • Workspace Template supplies environment appearance and update/delete prompts; it does not change database permissions. Recheck its choice after changing the host.
  • SQLite parameter validation opens the file and can create a missing database, including during Test or Save. Use an existing file when you only intend to reopen it.
  • Saved profiles use encrypted local persistence. The separate Save Connection command writes a JSON .conn file with connection parameters that may include passwords; protect that file as credential material.
  • These development captures show individual states. SSH, URL import, profile changes, session updates, and a complete connection workflow still need release verification.

If something goes wrong

  • If testing fails, read Test Connection Result and check engine, host, port, credentials, TLS requirements, routing, and database access before retrying.
  • For SSH, distinguish the jump-host address from the database address reachable from that host. Check the private-key path and its passphrase, or the SSH login password when no key is selected.
  • For SQLite, check that the path points to a database file, its parent folder exists, and the file/folder permissions allow the requested access. A missing path can create a new empty file.
  • If search seems to leave unrelated profiles visible, that is expected: it highlights and locates matching controls/profiles. Use the arrows to move between targets, then verify the loaded form.
  • If edited settings did not reach an existing session, review whether you chose Save Favorite Only. Use the explicit update choice when you intend to apply new settings to existing sessions.