From the terminal to the browser with BroadSQL 5.6.0
November 22, 2026
BroadSQL 5.6.0 gives the same SQL engine a second place to work. BroadSQL Desk brings queries, saved Scripts and a working journal to the browser, while the independent ShaWeR runtime handles web access. The release also brings a simpler install, unattended Linux startup and some welcome changes to the work you do at the prompt.
A support ticket arrives after a deployment. Overnight imports look complete in the test environment, but the operations team has found gaps in the live report. You have a Script that checks which batches arrived, another that counts rejected rows, and a few queries you usually make up as you go. You’ll need to look at both environments and give the reporting team something more useful than a screenshot of the first page of results.
If you know the commands, a terminal is a good place to start. You can call the saved check, change a parameter and get another answer with little interruption. The part that takes longer comes after the query. You have to find the one value that explains why two batches behaved differently, keep enough context to come back to it after a call, and decide which rows belong in the file you’re sending. These are good reasons to want a grid and a journal close to the query.
BroadSQL 5.6.0 gives that part of the investigation a home in the browser. With the optional BroadSQL Desk extension, you can use the connections and Scripts Library of a BroadSQL installation, inspect the results in grids and keep a record as you work. You can also spend the entire afternoon in the terminal. It still has its own tools for editing and running Scripts, switching environments and producing exports.
The interesting part of the release is how those two ways of working fit together. You can put a browser in front of a BroadSQL installation without making web access a condition of running it. You can also set up a Linux installation that is ready for people to sign in after a reboot, without leaving a terminal open for them. The BroadSQL 5.6.0 Release Notes have the full record of the release.
What runs the query and what opens the browser
Take the Script that looks for missing batches. The connection it uses, the way its arguments are interpreted and the way its SQL is executed belong to BroadSQL Core. Core is the free distribution. It provides the SQL engine, the command-line interface, configuration and connections, Script execution and the existing database tools. In a Core installation, you open a terminal and work at the prompt or run your Scripts as usual. Core opens no web port.
To give a browser something to connect to, you install ShaWeR, short for Shared Web Runtime. It’s a free extension with its own download. It supplies the web listener, the address you open and the sessions that keep track of who is signed in. You start it explicitly. Adding the extension files to an installation leaves the web listener stopped until you ask to start it.
BroadSQL Desk is the optional interface you use once you’re in the browser. Its work is to present the prompt, connections, results, Scripts Library and journal in a form you can use there. Desk sends the database work to BroadSQL and relies on ShaWeR for web access. Its download includes ShaWeR as a separate extension. You can start ShaWeR without Desk, and opening Desk starts ShaWeR if it’s needed.
That split makes a practical difference even if Desk is the only web extension you use. The settings for the web address and sign-in belong in one place. The choices about how many rows Desk displays or whether it opens a browser from the console belong to Desk. If you close Desk with DESK STOP;, its uncommitted changes roll back and ShaWeR stays up. Another extension served by ShaWeR can keep using it. An extension that needs browser access can use the same runtime without acquiring Desk or bringing along a server and sign-in page of its own.
You can see the division from the console. DESK STATUS; tells you whether the workspace is open and reports its address and licence status. SHAWER STATUS; is where you look for details about the web runtime. If you’ve just added an extension and its command is missing, SHOW EXTENSIONS; lists the extension files BroadSQL found and their status. SHOW EXTENSION ERRORS; explains a load failure, including which BroadSQL releases the extension supports when the installed release is outside that range. That gives you a place to look before you spend time changing browser settings for a component that hasn’t loaded.
Desk requires a valid licence key. Licence keys are not yet made available to the public. If you are interested, email broadsql@upandcoding.com. BroadSQL itself and ShaWeR need no licence. The ShaWeR guide covers the independent installation, and the Desk guide covers the workspace and its requirements.
Working through an investigation in Desk
Start with the known check. In Desk, the Library is where you find the Script for missing batches. Select it, fill in the parameters it asks for and run it. The Script still has the argument definitions you gave it for use at the prompt. If the check asks for a reporting date, that meaning comes from the Script. The browser gives you a place to enter it. The value of the Library here is that the person picking up the ticket can start with the same check you would run, even if they don’t remember how to invoke the file from the console.
The connection chooser gives you the Database Group and Environment that go with the investigation. Connections outside a Database Group are under No Database Group. That’s useful when one of the things you need to check is a standalone database, such as a local sample or an older reporting store that you haven’t grouped with anything else. For work that will carry on in another environment, change the active connection. For a single lookup elsewhere, Run on... runs the latest query in the other environment and leaves the current connection selected.
Suppose the missing batch query returns rows for several source systems. On screen you can sort by a column, filter the grid and double-click a cell to copy it. You might sort on arrival time to see whether all the gaps appeared together, then filter to the source named in the ticket and copy one batch identifier into your next query. Those few gestures are what make the grid useful. You can stay with the result long enough to decide which question to ask next.
For that next question there’s a prompt. Enter runs the input, Shift+Enter adds a line, and Tab offers completion. You can start with the saved check and then write a short query of your own without leaving the workspace. If you need to adjust the reusable Script for everybody, Script editing stays with the BroadSQL Editor and the console tools. It’s quite natural to finish a one-off investigation in the browser and make the library improvement later, once you’ve seen which part of the check is actually worth keeping.
Desk leaves a block for the work you’ve run. On a busy investigation, Keep makes it easier to find the handful of blocks worth revisiting. An initial count might tell you the scope of the incident, while the query you wrote later identifies the first missing batch. Keep those two and you have a better starting point when the reporting team comes back with a follow-up. Copy command gives you the input if you want to adapt it. Session record downloads the journal when you need the record of the investigation.
It matters what you expect to get back the next day. A kept block from an earlier session comes back with the text it printed. Desk keeps that text, while the rows of the old grid are available again by using Run again to query the database. If the overnight import has since been repaired, the new query may tell a different story. If you need the actual set of rows you saw for the incident, make the export while you’re working and keep that file as the evidence.
There are two useful ways to get rows out of a grid. If you filtered to one source and want to show someone those rows, Desk can copy the rows or produce a CSV of the rows shown. If the reporting team needs the full result, use DUMP. That difference matters in a busy workspace. The filter you applied to get a quick look at one source and the display limit that keeps a large grid manageable both serve the inspection. The full export serves a different question.
Desk also has a database session separate from the console’s. It can start from the same configuration, but each interface has its own connection, variables and transaction. If you make a correction in one, commit there before relying on the change in the other. In Desk, changing the active connection rolls back uncommitted changes. The existing BroadSQL Production confirmations apply in Desk too, so when a statement that can modify a Production database needs confirmation, the question comes to you in the browser.
That gives the browser a useful place alongside the terminal. For an investigation with several rounds of reading, sorting and following up, the record and the grids may be where you spend most of your time. When the outcome is a Script you want to maintain, the Editor is still where you work on the file. Both can draw on the same library, and both use the same execution engine.
What belongs to you when others sign in
When a team uses one installation, it helps to know what you’ll find after signing in. In 5.6.0, each named Desk user has their own Recent, Kept, Exports and journal. The query you just entered is what you’ll find when you go back through your commands with the Up key or Ctrl+R. Your colleague’s commands stay in their own Recent. Those records survive a sign-out and a BroadSQL restart, so signing back in gives you a way to pick up your work even if the installation was restarted in between.
The Scripts Library is shared. That’s where a good diagnostic belongs once it has earned a place in the team’s routine. The queries you run while figuring out whether a count was wrong, what a particular row means or which filter to try next can stay in your own journal. When you put a check in the library, you’re making a deliberate choice about what should be available for someone else to run.
Desk also shares one active connection among the people signed in to that instance. One command runs at a time, and the person who starts it is the one who can stop it. If someone changes the connection, the selection changes for everyone. That’s an important detail when you and another engineer are looking at the same import from different environments. Agree on the active environment for the work you’re doing together. For an occasional check elsewhere, Run on... gives you a way to look without switching the shared selection.
The name at the right of the Desk header tells you which user opened the browser session. If you opened it from the console using a launch link, the name is console, with its own Recent, Kept, Exports and journal. The commands you type in the terminal stay out of Desk users’ Recent. This makes it easier to tell where to look if you started checking a problem at the prompt and later opened the browser to work on it.
When you’re done, Sign out ends that browser session on the server. An extra tab in the same browser can no longer use it. Closing the tab leaves Desk running, which is useful when other people are still at work. Stopping Desk from the console closes the application for everyone. Those are three everyday actions with different effects, and the distinction is particularly useful once the machine running BroadSQL is somewhere other than the desk in front of you.
Getting to the workspace and signing in
On a workstation you can open Desk from a BroadSQL console you’ve already unlocked. By default, DESK; can open a link that works once within two minutes. If launch links are disabled or two-factor authentication is required, you get the address and sign in there with a named ShaWeR user. The address of the installation contains its Instance ID and stays the same across restarts. That’s the address to bookmark. The link from the console is for the immediate handoff to the browser.
When you open the workspace address and need to sign in, you go directly to the BroadSQL sign-in page. It names the instance you’re signing in to and takes you back to the requested application after sign-in. Think of a team with a live reporting installation and a separate place to try changes to the library. A bookmark to each workspace can take you where you meant to go, and the instance on the sign-in page gives you another chance to recognize which one you opened.
A named browser user signs in with a ShaWeR password and, when configured, a time-based code from an authenticator app. The authenticator code is the second factor. ShaWeR stores its user credentials and two-factor secrets in the encrypted Connections Definition File, or CDF. The master password unlocks that file for BroadSQL. The browser account is what a person uses to sign in to the running installation, and the database connection still uses its configured database account.
The optional Remember me box begins unchecked. On a browser you choose to remember, you still supply the password and any required authenticator code when you first sign in. The remembered sign-in has a fixed lifetime, 14 days by default, and the administrator can remove the option by setting ShawerRememberDays to zero. Signing out forgets the remembered sign-in on that browser. An administrator can also revoke a user’s sessions and remembered sign-ins from the console with SHAWER SESSIONS REVOKE. That’s useful when someone has left a browser signed in and can no longer get back to it.
By default, ShaWeR listens on the loopback address, which means a browser on that computer can reach it. A team that needs to reach it from other computers can put an HTTPS reverse proxy such as Nginx in front of it on the same machine. The proxy receives the browser requests and passes them to ShaWeR over the local connection. The setup requires both ShawerPublicUrl and ShawerTrustedProxies. ShaWeR continues to listen on loopback, and the public address is the one the team opens in their browsers.
The stable instance address is especially helpful in that setup. The administrator can configure the proxy for the installation and give the team a bookmark. A process restart doesn’t require handing out a new path. HTTPS at the proxy and named sign-in serve different purposes: HTTPS protects the browser traffic in transit, while sign-in establishes who is using the workspace. The ShaWeR guide for reaching it from another computer explains how to configure the proxy and its trusted address.
A Linux installation that comes back after a reboot
Suppose the import checks have become a regular part of the morning. The team opens Desk to see what arrived overnight, and the BroadSQL installation runs on a Linux machine. If that machine was restarted for maintenance, you want to know that the workspace can be ready before the first person needs it. An interactive BroadSQL console expects someone to unlock the CDF. A Linux service needs a way to start with nobody at the keyboard.
The Linux package includes a systemd unit template and an installer for that job. The unit starts BroadSQL with --service, which tells the launcher to run it in unattended mode. With the documented setup, systemd supplies the master password as a service credential from a root-owned file with restricted permissions. BroadSQL uses that credential to unlock the CDF. The INI file can describe what the service should start without holding the password itself.
The default startup opens ShaWeR. To have Desk ready too, install the extensions and a valid Desk licence and set the startup commands in conf/broadsql.ini. This is the sequence shown in the Linux service guide:
ServiceStartupCommands=SHAWER START;DESK;The two commands read in the order the service runs them. First comes the listener, then the application people will open. The journal shows each startup command, so you can see how far startup got if there’s a problem. If a command fails, the service stops and reports the failure. An occupied port, for example, is something you can track down from the journal before you spend time wondering why nobody can get to the sign-in screen.
Once the unit is installed, the usual systemd tools manage it. The first command below starts BroadSQL and enables it at boot. The others check its state and follow its journal.
sudo systemctl enable --now broadsql
sudo systemctl status broadsql
journalctl -u broadsql -fService startup leaves database connections for the people who will use the workspace. It unlocks the configuration and runs the startup commands without opening a database connection or a browser. People reach the configured address, sign in as named ShaWeR users and choose a connection from Desk. The service keeps the workspace available. The decision about which database to use still happens when someone begins their work.
An existing installation can take on that role with its current settings, CDF, instance address and ShaWeR users. The installer preserves the ownership of the installation and gives the service account the access it needs, including write access to conf, logs and shawer. If you later change the master password, the credential that systemd hands to the service needs to match the password of the CDF. The service guide walks through that change and shows what to look for in the journal if the credential or configuration needs attention.
For the team, what matters is the morning after maintenance. The bookmark still points to the same installation. When Desk opens, users can find their kept work, or they can go straight to the shared Script for that day’s imports. For the administrator, getting to that point is an ordinary service startup with a status and a journal to check.
The terminal still earns its place
There’s plenty in this release for the person who just wants to start BroadSQL and go to work. The download now comes in two self-contained packages, one for Windows x64 and one for Linux x64. Each includes its own Eclipse Temurin 21 runtime, and the launcher uses that copy. You can unpack BroadSQL on a supported machine and start it without first arranging a separate Java installation or finding out which Java another tool put on the path.
On Windows, BroadSQL.bat is the recommended launcher. From a PowerShell window in the installation folder, start it with .\BroadSQL.bat. On Linux, the interactive launcher is ./broadsql.sh. The startup scripts now pass options through to BroadSQL, which reports an unknown option and stops. That matters for the person maintaining a service, and it’s also useful with an ordinary console: a typo in an option gets an error at startup instead of a session that silently opens in a different mode from the one you asked for.
For an upgrade, unpack the package for your platform into a new folder and bring over the configuration, drivers, extensions and Scripts you use. Keep the runtime provided with the new package. On Linux, the settings file is now conf/broadsql.ini, the same name as on Windows. If the old Linux name broadsqlux.ini is all you have, BroadSQL still reads it and asks you to rename it. VERSION shows which settings file was read. The installation guide explains the package layout and the launchers.
The way you find earlier work in the console is still the Up key or Ctrl+R, but an upgrade can change where that history is read from. The default JLine history file is now history in the installation folder. A relative path for either command history or the Script revision vault is also resolved from the installation folder. Previously, a relative history path pointed into .broadsql under your home directory.
If you’ve carried over an empty jlinehistoryfile= line, the console keeps history for the session only and tells you at startup. Remove that line or set it to history to use the new default. If you want to keep using a history file where it was before, set its absolute path. BroadSQL reports an old history it finds and leaves it in place. The Script revision vault still defaults to your home directory when scripthistoryvault is empty. The history settings guide shows how to retain both histories when you upgrade.
The history file matters when a command you used a week ago turns out to be the quickest route back to the problem. When it’s a Script you run every Monday, the Editor’s new Favorites view is a better place to put it. Add the import check to Favorites from its context menu and the shortcut survives a restart. It also follows the Script when you move or rename it. That makes it easier to reorganize a growing library without losing the handful of files you reach for all the time.
From the terminal, EDITOR opens the BroadSQL Editor. The familiar EDIT form still works, and Tab can complete a Script path after either command. If you’re already at the prompt and know where the check lives, completion takes you directly to the file. If you’re already in the Editor and know only that it’s one of your regular checks, Favorites gives you a short list. Both are useful when a library is large enough that browsing the whole tree takes longer than the edit.
The Script itself can be a little easier to diagnose now. Suppose a check takes a text argument naming a source system. If you supply a named text argument without its quotes, BroadSQL can reject it with the form it expects. If the problem is in the Script’s SQL, LIB LINT can warn when a declared TEXT, DATE or TIMESTAMP parameter appears without quotes. Typed Script parameters were already there. The improvement is that an ordinary mistake is easier to find, whether you’re preparing the Script for the library or trying to run it on a deadline.
There’s a quieter keyboard improvement if you spend part of the day in a Linux terminal over SSH. The navigation keys now move around the line without inserting stray fragments of their key sequences. Ctrl+Backspace and Ctrl+Delete delete the whole word on the appropriate side of the cursor. These are small changes, but they show up precisely when you’re trying to adjust a query you’ve pulled from history and want to get back to the database.
Making sure the file answers the right question
Back at the import ticket, suppose the reporting team asks for one file from test and one from production. You run the same read-only query in both places because you want the rows to be comparable. The dangerous mistake is an export with a convincing name and the wrong contents. It can look fine at a glance, especially if the first few rows are common to both environments.
In 5.6.0, DUMP / uses the active connection. If you’ve switched connections or environments since the remembered query ran, BroadSQL runs the read-only query on the new connection for the export. If that query fails there, BroadSQL reports the error and writes nothing. It won’t silently substitute the rows from the previous database. The same correction applies to PULL /.
There’s another distinction when the data stays on the same connection. Suppose you’re still in the console and the check returns more rows than MaxRowsOnScreen permits. That setting controls what you see. For a read-only query whose display was capped, DUMP / runs the query again to export the full result. When the whole result was displayed and you’re still on the same connection, it exports that result without running the query again. The export guide describes when each case applies.
That means there can be a difference in time as well as in row count. If a batch finishes between a capped preview and the export, the file reflects the query that ran for the export. That’s what you want when the request is for the current set of missing batches. If the request is for the evidence behind a particular count, decide when to take the export and keep track of the environment and time it represents. The same habit will help when you return to a kept block in Desk and run the query again after the data has changed.
You can try the basic export on the included WORLD database before using it on a report. The query below is the one in the export guide. It returns the country code and name for the Baltic countries, with padding removed from the name and the rows ordered by code.
CONNECT WORLD;
SELECT CODE, TRIM(NAME) AS NAME
FROM COUNTRY
WHERE REGION = 'Baltic Countries'
ORDER BY CODE;
DUMP / TO baltic AS CSV;With all three rows displayed, the export takes them from the result you just saw. The file is baltic.csv in your configured export folder. Try the same pattern with a report query you know well and you can check the file against the displayed rows before handing it off. When two environments are involved, give each export a name that identifies its source. That part still belongs to you. BroadSQL can choose the right rows from the active connection, but the person receiving the file may have only its name and contents to go on.
For a small pair of results, a grid and a copied batch identifier may be all you need. For a larger comparison, the point of the export is that the person receiving it can work with the full data from the intended database. The release improves that ordinary handoff, whether the investigation began in a browser or with a command recalled at the prompt.
By the time the ticket closes, the file of missing batches may be the only thing the reporting team needs. You may also have found a check worth adding to the Scripts Library, so the next person can start where you finished. BroadSQL 5.6.0 makes room for both parts of that work. The console remains a good place to maintain and run the check. Desk gives you a place to follow the results, keep the useful queries and find them again. ShaWeR makes that workspace available when you choose to run it, whether that’s on your own computer for an afternoon or on a Linux service the team returns to every morning.
Found something wrong or unclear on this page? Tell us, with the page address.