Musubi SQL Help
Musubi SQL lets you work with SQL Server, PostgreSQL, MySQL, Oracle, SQLite and other databases from a single window. Open the help for the feature you are using. Operations shared by every screen are described under "Common operations" on this page.
Help by feature
Press ? at the top right of any screen, or F1, to open the help for that screen.
The main window
| No. | Part | Description |
|---|---|---|
| 1 | Top bar | Creates new connections, SQL tabs and ER diagrams. On the right you switch the display names (logical / physical) and open Settings and Help. |
| 2 | Tree | Lists the databases, schemas, tables and other objects of each connection. The name in parentheses next to a connection is the user you are connected as. See Using the tree. |
| 3 | Tabs | Switch between open SQL editors, tables, ER diagrams and so on. Close a tab with Ctrl+W, its ×, or a middle click. |
| 4 | Tab content | The screen itself. Press ? at the top right to open the help for that screen. |
| 5 | Status bar | The left side shows messages such as execution results; the right side shows the connection of the current tab, including whether it is in manual commit or read-only mode. The small text at the far right (e.g. 0.5.0 #12) is the app version and build number; hover over it to see when the build was made. |
Logical and physical names
Musubi SQL can show the comment on a table or column as its "logical name" (e.g. emp_name → "Employee name"). Use "Display names" on the top bar or Ctrl+L to switch between three modes:
| Display names | What is shown |
|---|---|
| Logical | The logical name if there is a comment, otherwise the physical name |
| Physical | The actual table or column name |
| Both | Both names (grid headers use two lines) |
If a comment contains a separator, as in "EmployeeID: Number that uniquely identifies an employee", the part before it is the logical name and the rest is the description. You can change the separators in Settings. The defaults are the ASCII colon :, the full-width colon : (U+FF1A, common in Japanese comments) and the tab character. Without a separator, the first line of the comment is the logical name.
Logical names in SQLite
SQLite has no way to attach comments to tables or columns (there is no COMMENT ON or similar). Instead, Musubi SQL reads the line comments (--) written in the CREATE TABLE statement as logical names. To show logical names, write them into the CREATE TABLE statement when you create the table.
CREATE TABLE employees ( -- Employee: Basic employee information emp_id INTEGER PRIMARY KEY, -- EmployeeID emp_name TEXT NOT NULL -- Employee name);- Table logical name: the comment after
(, on the same line as the(. - Column logical names: write one column per line and put the comment at the end of the line.
/* */comments are not read. - Where it is stored: SQLite stores the CREATE TABLE statement, comments included, as is inside the database file (in the
sqlite_mastertable). Copy the file and the logical names come with it. - Creating tables in the GUI: creating a table in the GUI and Generate DDL in the ER diagram turn the logical names you enter into comments of this form in the CREATE TABLE statement.
ALTER TABLE … ADD COLUMN cannot have a logical name (a trailing -- comment causes an error).Keyboard shortcuts
| Key | Action |
|---|---|
| Ctrl+Enter | Execute the statement at the cursor (or the selection) |
| F5 | Execute all statements |
| Ctrl+E / Ctrl+Shift+E | Estimated execution plan / Actual execution plan |
| Ctrl+Q / Ctrl+Shift+Q | Format SQL / Format SQL as one line |
| Ctrl+K / Ctrl+Shift+K | Comment out / Uncomment |
| Ctrl+F, Ctrl+H, Ctrl+G | Find, Replace (Ctrl+R also works), Go to line |
| Ctrl+N / Ctrl+O / Ctrl+S | New SQL / Open / Save (Ctrl+Shift+S is Save As) |
| Ctrl+L | Switch display names (in an ER diagram, the display names of that diagram) |
| Ctrl+Shift+H | SQL execution history |
| Ctrl+W | Close the tab |
| Ctrl+, | Settings |
| F1 | Help (the page for the current screen) |
For keys that work in grids, see Working with grids.
Settings
Open Settings with ⚙ Settings on the top bar (Ctrl+,).
| Setting | Description | Default |
|---|---|---|
| Theme | Use OS setting, Light or Dark. The change applies as soon as you select it. | Use OS setting |
| Shade every other row in data grids | Lightly shades alternate rows in result and data grids. | On |
| Comment separators | Characters that split a comment into a logical name and a description. The comment is split at the first occurrence of any of them. Leave empty to not split. To split at tab characters, check "Also split at Tab characters". | ::, Tab (checked) |
| Maximum rows to fetch | The maximum number of rows loaded for SQL results and table data (same as "Max" in the SQL tab). | 1000 |
| Editor font size | Font size of the SQL editor. | 14 |
| Wrap long lines in the SQL editor | Wraps lines that are wider than the editor (same as "Wrap" in the SQL tab). When off, the editor scrolls horizontally. | Off |
| Confirm before executing dangerous SQL (DROP / TRUNCATE / UPDATE or DELETE without WHERE) | Asks for confirmation before dropping objects or deleting or updating every row. | On |
Moving settings (export and import)
You can move connection settings and more in one go, from the installed version to the portable version or to another PC.
- On the source, choose "File" → "Export Settings...", select what to export (Connection settings, Favorites, SQL execution history, App settings) and save the file (
.msqsettings). - On the destination, choose "File" → "Import Settings...", select the file, choose what to import and press "Import".
- Passwords: saved passwords are stored so that only this PC and this OS user can decrypt them. To move them, turn on "Include saved passwords" and set a passphrase (8 or more characters); the passwords are exported encrypted with that passphrase. Enter the same passphrase when you import (leave it blank to skip the passwords and enter them when you connect).
- Overwriting: connection settings, favorites, ER diagrams and execution history from the same export source are overwritten; everything else is added. Importing the same file repeatedly does not create duplicates. App settings are replaced.
- Do not hand over a file that contains passwords together with its passphrase.
Supported databases
| Type | Requirements |
|---|---|
| SQL Server, PostgreSQL, MySQL / MariaDB, Oracle (12.1 or later), SQLite | Nothing else to install. |
| SQL Server Compact (.sdf) | Windows only. The SQL Server Compact 4.0 SP1 runtime (or the location of its DLL). |
| SQL Server LocalDB | Windows only. LocalDB and Microsoft ODBC Driver for SQL Server. |
| ODBC | The ODBC driver for the target database. |
| JDBC | Java 11 or later, and the JDBC driver (.jar) for the target database. |
For details, see Connection types and fields.
License terms and disclaimer
- Musubi SQL is free to use, for individuals and companies alike, including for business use. It is not open source.
- Not permitted: modifying it or embedding it in other software, selling it or distributing it for a fee, distributing modified copies, and reverse engineering.
- Permitted: passing the distributed files, unmodified, to others free of charge.
- For details, read the license terms file included in the distribution (for the installed version,
resources\LICENSE.txtin the installation folder). You are asked to agree to them the first time you start the app, and again the first time you start a version with changed terms.
This app can modify database contents directly. You are responsible for the results of your operations (such as lost or corrupted data), and the author accepts no liability except in cases of intent or gross negligence. Before using it in production, try it in a test environment, and always take a backup first. For read-only use, turn on "Read-only" in the connection settings.
▲ Back to top