Help home > Connections

Connections

Register database connections, then open tables, views, procedures and other objects from the tree on the left.

What you can do

TaskHow
Create a connection+ New connection on the top bar, or + at the top right of the tree
Edit, duplicate or delete a connectionRight-click the connection in the tree
Connect or disconnectClick the connection in the tree (expanding it connects) / right-click → "Disconnect"

Getting started: creating a connection (3 steps)

  1. Open the connection dialog

    Press + New connection on the top bar.
  2. Enter the type and target

    Give the connection a recognizable "Connection name", choose the "Type", and fill in the host, user and so on (fields for each type). Use Test Connection to check it.
  3. Save and open it

    Press Save and the connection appears in the tree. Click it to connect and show its databases and schemas.

Connection types and fields

TypeFieldsNotes
SQL ServerHost, Port (1433), Database, Instance name, User, PasswordIf you leave Database empty, you connect to the default database (usually master) and the tree lists all databases. For Windows authentication, enter a "Domain" to connect with NTLM. Self-signed certificates are trusted by default for connections to localhost and similar.
PostgreSQLHost, Port (5432), Database, User, PasswordThe tree lists all databases.
MySQL / MariaDBHost, Port (3306), Database, User, PasswordIn MySQL, databases appear in the tree as schemas.
OracleHost, Port (1521), Service name, User, Password, or a connect stringIf you enter a connect string (host:port/service or a TNS descriptor), it takes precedence. Oracle 12.1 or later is supported.
SQLiteDatabase fileIf the file does not exist, a new one is created.
SQL Server Compact (.sdf)Database file, Password, System.Data.SqlServerCe.dllWindows only. If the runtime is not installed, specify the location of the DLL (with the amd64 folder next to it).
SQL Server LocalDBInstance, .mdf file to attach, Database, ODBC driver nameWindows only. If the ODBC driver name is empty, it is detected automatically.
ODBCConnection string (DSN=… etc.), User, PasswordRequires the ODBC driver for the target database.
JDBCJDBC URL, Driver jar, Driver class, Java executableRequires Java 11 or later. If the Java executable is empty, the java in JAVA_HOME or PATH is used.

SSH tunnel and SSL

SSH tunnel (SQL Server, PostgreSQL, MySQL, Oracle)

Use this when you cannot reach the database directly and must go through a bastion (SSH) server. Check "Use an SSH tunnel" and fill in the following:

FieldDescription
SSH server, SSH portName (or IP address) and port of the bastion server (default 22)
SSH userThe user that logs in to the bastion server
SSH authenticationPassword, or Private key (a key file such as OpenSSH format; enter its passphrase if it has one)

SSL / TLS (PostgreSQL, MySQL)

SettingDescription
DisableNo encryption (default)
Enable (do not verify the certificate)Encrypts the connection without checking the server certificate (for servers with self-signed certificates)
Enable (verify the certificate)Encrypts the connection and verifies the certificate. If the certificate was issued by an internal CA, specify its PEM file in "CA certificate"

For SQL Server, use "Encrypt (TLS)" and "Trust server certificate (self-signed)".

Common fields

FieldDescription
GroupConnections with the same group name are grouped into a folder in the tree (e.g. Production, Development).
ColorColors the mark in front of the connection name and the status bar line while a tab of that connection is active. Making production connections red, for example, helps you avoid mix-ups.
Read-onlyBlocks data-modifying SQL (INSERT, UPDATE, DELETE, CREATE, etc.) and data editing.
Common columnsColumns that many tables in this database have, such as created at or updated by (logical name, physical name, data type, NOT NULL, default). They are matched by physical name (case-insensitive).

Common columns

Define, per connection, the columns that your database convention adds to every table.

Using the tree

Saving passwords

When "Save password" is on, the password is encrypted with the OS credential mechanism (such as DPAPI on Windows) and saved. When it is off, you enter it each time you connect (opening another database of the same connection does not ask again).

Saved passwords cannot be moved to another PC or to the portable version as is. Export them with a passphrase as described in Moving settings.

FAQ

"The key of SSH server … differs from the one recorded on a previous connection" appears

The SSH server key you recorded differs from the one presented now. Ask the server administrator whether the key was replaced. If you are sure it was, click "Forget SSH Server Key" in the connection settings and connect again.

Cannot connect to SQL Server: "self signed certificate"

The server uses a self-signed certificate. In the connection dialog, turn on "Trust server certificate (self-signed)" or turn off "Encrypt (TLS)".

Connected to SQL Server, but no tables appear

If you do not specify a database, you connect to master. Expand the database you want in the tree (master and the like are in the "System Databases" folder).

SQL Server Compact says the runtime cannot be found

Install the SQL Server Compact 4.0 SP1 runtime (64-bit), or specify the location of System.Data.SqlServerCe.dll in the connection dialog.

▲ Back to top

← Musubi SQL website (download)