On this page

Application settings

BroadSQL reads its configuration from a single settings file at startup: conf/broadsql.ini, on Windows and on Linux (see Installation). This page documents every setting in that file. On Windows, you can also view and change them in the Application Settings tab of CONFIG: see Changing settings.

The settings file

The settings file is conf/broadsql.ini of the installation. The Windows and Linux packages each hold one, with the same settings; some values differ by system (folders, the address of the CDF, the activity log). VERSION shows the file BroadSQL read, as a full path.

An installation of BroadSQL 5.5.5 or earlier named the file conf/BroadSQL.ini on Windows and conf/broadsqlux.ini on Linux. BroadSQL never renames, copies or merges these files:

In confBroadSQL readsAt startup
broadsql.inibroadsql.iniNothing is said
BroadSQL.ini, on WindowsThe same file: Windows file names ignore caseNothing is said
broadsqlux.ini only, on Linuxbroadsqlux.iniBroadSQL asks you to rename it broadsql.ini, BroadSQL closed
broadsql.ini and broadsqlux.ini, on Linuxbroadsql.iniA warning at every start: broadsqlux.ini is not read
None of themNothingBroadSQL says the file is missing and does not start

The BroadSQL.ini that the Linux packages of earlier releases also held was never read on Linux, and still is not.

File format

  • One setting per line: Key=Value. Values are used exactly as typed, no quoting.
  • Lines starting with # or ! are comments. A line starting with ; is not a comment for Java: it is read as a setting whose name starts with ;, which BroadSQL ignores. The shipped ;scripthistoryvault= line is such an ignored example: remove its ; to use it.
  • A setting that names a folder or a file (every setting of the Paths table) is written as a Windows path usually is, with single backslashes: ScriptsLibrary=C:\DevEnv\scripts. The doubled form of a Java properties file, ScriptsLibrary=C:\\DevEnv\\scripts, designates the same folder, and so does C:/DevEnv/scripts. In every other setting a backslash keeps its Java properties meaning, an escape character (FieldsSeparator=\t is a tab). In CONFIG you type the path as it is (C:\temp\exports); CONFIG writes the doubled form, and a path typed there with doubled backslashes is reduced to single ones first. Before BroadSQL 5.6.0 single backslashes disappeared from a path (C:\DevEnv\scripts was read as C:DevEnvscripts). A value that ends with a single backslash continues on the next line of the file: end a folder with \\, with /, or with no separator. While a line holds \u not followed by four hexadecimal digits (C:\users\public), BroadSQL reads it, but CONFIG cannot save the file (it says so and changes nothing): write that path with \\ or / to save from CONFIG.
  • The [General] and [Log] headers are organizational only, to group related settings for the reader; they don't scope or namespace the keys underneath them. A key works the same regardless of which header (or no header) it sits under.
  • Every setting below is required (BroadSQL fails to start with a Could not resolve placeholder error if a required key is missing or misspelled) except DefaultFileFormat, CsvSeparator, DefaultEnvironment, ScriptsLibrary, JsScripts, LicencesPath, activatejline, jlinehistoryfile, color, theme, displaymode, scripthistoryvault, the apiproxy* family, FieldsSeparator, ScreenSeparator, MaxRowsOnScreen, MaxRowXLSX, Autocommit, RememberLastConnection, ProductionConfirmEveryChange, IsLogActivated and LogRetentionDays, which can all be left out entirely: see their rows below for what happens when they are. A present but invalid value (wrong type, or not one of a setting's allowed values) never stops BroadSQL from starting either, for any setting in this file: BroadSQL prints a one-time startup message identifying the setting and falls back to its documented default, and only functionality that genuinely depends on that specific setting is affected. For MaxRowXLSX, DefaultFileFormat and CsvSeparator, the export forms that depend on the invalid value refuse to run, with an error naming the setting, rather than silently guessing; see their rows below.

Paths

A setting that names a folder or a file accepts a relative or an absolute path, written the usual way of the operating system. A final \ or / is optional.

PlatformRelativeAbsolute
Windowshistory, uat\history, uat/history, ..\historyC:\temp\history, C:/temp/history, \\server\share\history
Linux, macOShistory, uat/history, ./history, ../history/home/user/history

On Windows, C:temp (a drive letter without a backslash, which means the current folder of drive C) is refused in CONFIG: write C:\temp. On Linux and macOS a drive letter has no meaning, and CONFIG refuses a value such as C:\temp.

A relative path is relative to the installation folder: the folder that holds lib\broadsql.jar, which is also the folder of BroadSQL.bat and broadsql.sh. BroadSQL finds it from its own location, so the result is the same whatever folder BroadSQL is started from (a shortcut, another BAT file, a scheduled task) and wherever the INI file is. With BroadSQL installed in C:\toto, ScriptsLibrary=scripts is C:\toto\scripts, and ServersFileName=./conf/ConnectionsDefinitionFile.cdf is C:\toto\conf\ConnectionsDefinitionFile.cdf. An empty DefaultFolder is the installation folder itself. An absolute path is always used as given.

The two history settings follow the same rule since BroadSQL 5.6.0: a relative jlinehistoryfile or scripthistoryvault is relative to the installation folder. jlinehistoryfile is history by default, the file history of the installation folder. scripthistoryvault left empty keeps its default in .broadsql of your home folder. See History settings.

SettingNamesWhen it does not existCreated by BroadSQL
ServersFileNameThe CDF file (an H2 location, see its row)The login fails with an errorNo
DefaultFolderA folderExports to it failNo
CustomExtensionsFolderA folderNo custom command is loaded; a warning is loggedNo
LicencesPathA folderNo licence is found; nothing else is searchedWhen a licence is installed
ScriptsLibraryA folderRunning or listing Scripts fails, naming the folderBy the Editor, with the first new Script
JsScriptsA folderThe JS commands report an errorNo
jlinehistoryfileA fileIts folder is created at startup, the file with the first commandYes
scripthistoryvaultA folderCreated when the first Script version is savedYes
LogFolderNameA folderLogging stops for the session (see Logging)No

In CONFIG, a folder that does not exist is detected when you save: BroadSQL names it and asks whether to create it. For a file setting it is the folder of the file; the file itself is never created by CONFIG. Every path setting takes effect at the next start of BroadSQL.

History settings

Two settings keep personal history, and they are two different things:

SettingHoldsMust beDefaultEmpty means
jlinehistoryfileThe command history of the console (Up/Down, Ctrl+R), the last 1,000 SQL statements and BroadSQL commands, in the order typedA filehistory, the file history of the installation folderThe installation folder itself: a folder, so the history is kept for the session only, and BroadSQL says so at startup
scripthistoryvaultThe version history of the Scripts edited in the BroadSQL Editor (History, Compare, Restore, Recent)A folder(empty).broadsql\script-history in your home folder

The shipped settings files say jlinehistoryfile=history; a file without the key means the same.

What the command history keeps. Every line you type at the prompt, SQL and BroadSQL commands alike, in the order typed, also in CDF maintenance ($CDF [MAINTENANCE]): after CONNECT $CDF; then SELECT COUNT(*) FROM CONNECTIONS;, Up recalls the SELECT, then CONNECT $CDF;. A statement typed over several lines is kept line by line. Not kept: passwords, the answers to questions (y, a field of ADD CONNECTION), and, in CDF maintenance only, a line that names a column or a table of the CDF holding a secret (PASSWORD, PASSWD, PWD, SECRET, VERIFIER, TOTP, TOKEN, CREDENTIAL, RECOVERY, DIGEST, PASSPHRASE, KEYSTORE, APIKEY, API_KEY), because the history file is not encrypted. A quoted value is not a reason on its own: in CDF maintenance, SELECT * FROM CONNECTIONS WHERE ID = 'FIXER'; is kept and recalled like any other query. See CDF maintenance for what that rule covers and what it does not promise.

Both accept an absolute path (C:\DevEnv\BroadSQL-IN\history\script-history, or a UNC path such as \\server\share\history\script-history) or a path relative to the installation folder. A final separator is not significant for scripthistoryvault; jlinehistoryfile needs a file name, so CONFIG refuses a value that ends with \ or /.

Relative or absolute. A relative path is relative to the installation folder, the folder of BroadSQL.bat. With BroadSQL installed in C:\DevEnv\BroadSQL-IN:

In the fileThe history is kept in
jlinehistoryfile=history, or no jlinehistoryfile line (the default)C:\DevEnv\BroadSQL-IN\history
jlinehistoryfile= (empty)Not usable: the installation folder C:\DevEnv\BroadSQL-IN itself. Kept for the session only; BroadSQL says so at startup
scripthistoryvault=script-historyC:\DevEnv\BroadSQL-IN\script-history
jlinehistoryfile=D:\Data\BroadSQL\command-historyD:\Data\BroadSQL\command-history
jlinehistoryfile=C:historyNot usable: C: without a backslash is the current folder of drive C. BroadSQL says so at startup

Single and doubled backslashes both work. In CONFIG, In use now shows the full path BroadSQL uses. A shared installation used by several people shares a relative history: give each person an absolute path of their own, for example in their home folder.

A folder named history. With the default, history of the installation folder must be a file. If a folder has that name (made by an earlier configuration such as jlinehistoryfile=history\history with scripthistoryvault=history\script-history, or by hand), BroadSQL writes nothing into it and replaces nothing: it says so at startup and keeps the history for the session only. When that folder holds your earlier history file history, the message gives the line that keeps using it (jlinehistoryfile=history\history); otherwise rename or move the folder, or give jlinehistoryfile another file.

Upgrading from an earlier release. Before BroadSQL 5.6.0 a relative path was relative to .broadsql in your home folder: jlinehistoryfile=myhistory was %USERPROFILE%\.broadsql\myhistory, it is now <installation>\myhistory. BroadSQL never moves, copies or deletes the former history. At startup, when the new place holds nothing and the former one holds a history, BroadSQL names both. To keep that history, either copy it to the new place (BroadSQL closed, see below), or write the former place as an absolute path (jlinehistoryfile=C:\Users\me\.broadsql\myhistory). An absolute path is not affected. An empty jlinehistoryfile=, the value of the settings files up to 5.5.5, meant %USERPROFILE%\.broadsql\history; it now designates the installation folder, which is not usable: write jlinehistoryfile=history, or the absolute path of your earlier history. At startup BroadSQL names that earlier history and never moves it.

Give them two different paths. The same path for both cannot work: whichever is created first, the file or the folder, makes the other unusable. CONFIG refuses to save such a pair and names both settings; a file edited by hand is reported once at startup, with an example. A common choice is one parent folder holding both:

jlinehistoryfile=C:\\Users\\me\\broadsql-history\\command-history
scripthistoryvault=C:\\Users\\me\\broadsql-history\\script-history

Single backslashes work too. In CONFIG, type C:\Users\me\broadsql-history\command-history. You need write access to the parent folder: BroadSQL creates the folders it needs. If the Script history folder cannot be used, the BroadSQL Editor still lists and opens your Scripts and says, above the Scripts tree, which setting and which folder are the cause; the history of your edits is not recorded until it is corrected.

Moving a history to another folder. A new path applies at the next start of BroadSQL and starts an empty history there: BroadSQL never moves, copies or deletes an existing history. To keep it:

  1. Quit BroadSQL.
  2. Copy the content of the old folder (by default %USERPROFILE%\.broadsql\script-history: index.json, recent.json and the assets folder) into the new folder. For the command history, copy the old file to the new file name.
  3. Set the new path (in CONFIG or in the file), then start BroadSQL.

The copied Script history is found again for every Script of the same Scripts Library. Delete the old folder yourself once you have checked the new one.

[General]

KeyDefault (shipped)Purpose
ServersFileName./conf/ConnectionsDefinitionFile.cdf;TRACE_LEVEL_SYSTEM_OUT=0 (Win) / file:./conf/ConnectionsDefinitionFile.cdf (Linux)Path to the Connections Definition File (CDF), the encrypted H2 database that stores your saved connections. Its backups folder receives the backup made before each automatic upgrade of the CDF (CDF schema versions). Extra H2 connection parameters can be appended after a ; (the shipped Windows file adds ;TRACE_LEVEL_SYSTEM_OUT=0 to silence H2's own console trace output). The value is an H2 database location, without the .mv.db extension: a relative location must start with ./ (an H2 rule), and it is relative to the installation folder. Read-only in CONFIG.
DefaultFolderc:\\temp\\ (Win) / /home/myuser/broadsql/temp (Linux, replace with a folder of your own)Folder where DUMP and EXPORT write their files (and the H2 databases of AS H2), where REPEAT ... TO <file> writes a file given without a folder, and where LOAD looks for a file given without a folder. With or without a final separator; a relative path is relative to the installation folder (see Paths). The folder must exist. See Export.
DefaultExtFileNameresults.xlsxName (without its extension) of the file DUMP / and DUMP (<query>) write when TO <destination> is omitted: results by default. See Export.
CustomExtensionsFolderextensionsFolder scanned at startup for JAR files containing custom commands, on Windows and Linux alike. A relative path is relative to the installation folder, where the launchers start BroadSQL. The launchers put extensions/* on the Java classpath, so keep extensions unless you also change the launcher. Empty: no folder is scanned and no custom command is registered. See Extending BroadSQL.
LicencesPath(empty)Folder of the installed licence files, such as the licence of an optional extension: a folder, never a file name, each licence keeping its own name in it (for example BroadSQL-Desk.licence, see BroadSQL Desk licence). Empty or absent: the conf folder, where this INI file is. An absolute path is used as given, spaces included (LicencesPath=C:\DataCenter\BroadSQL-Licences, where single backslashes work as well as doubled ones); a relative path is relative to the installation folder (see Paths). No other folder is ever searched: a value that is not a usable folder is reported, with its value, when a licence is needed. Several licence files can share the folder. BroadSQL itself never needs a licence. Optional.
FieldsSeparator\t (tab)Column separator of the plain-text output of compatibility commands kept for scripts from earlier releases. It has no effect on DUMP: AS CSV uses CsvSeparator and AS TEXT always uses a tab. Optional: if the key is absent, or its value is not exactly one character, BroadSQL prints an INFO message once at startup and falls back to \t.
ScreenSeparator| (pipe)Column separator used when displaying query results on screen (independent of FieldsSeparator): it separates the columns and starts and ends every line of the table, including the border lines. For a literal space, use \u0020. Optional: if the key is absent, or its value is not exactly one character, BroadSQL prints an INFO message once at startup and falls back to the pipe character.
CsvSeparatorSEMICOLONField separator of the CSV export format (DUMP ... AS CSV, and the monitoring file of REPEAT ... TO <file> AS CSV) and of the CSV files read by LOAD: COMMA or SEMICOLON (not case-sensitive; the characters , and ; are accepted too). No other separator is supported: with any other value, BroadSQL prints an INFO message at startup and AS CSV fails with a configuration error until the value is corrected. AS TEXT always uses a tab and AS JSON has no separator, whatever this setting says. Optional: if the key is absent or empty, SEMICOLON is used. See Export.
DefaultEnvironmentDEVRecognized and validated at startup (free text, e.g. DEV, QA), but currently has no effect on any command: H2 databases created by DUMP ... AS H2 are registered in the built-in LOCAL environment instead, regardless of this setting. Optional: if the key is absent, or empty, BroadSQL prints an INFO message once at startup and falls back to DEV. Kept for a future feature that may need it. See Export.
MaxRowsOnScreen100Maximum number of rows printed to the screen for a query (0 = no limit). It never limits an export: DUMP <table>, DUMP (<query>) and DUMP / always write every row (DUMP / runs a read-only query again when its display stopped at this limit). Optional: if the key is absent, or not a valid integer, BroadSQL prints an INFO message once at startup and falls back to 100.
AutocommitfalseDefault autocommit mode for new connections. Changeable mid-session with SET AUTOCOMMIT. Optional: if the key is absent, or not exactly true/false, BroadSQL prints an INFO message once at startup and falls back to false.
RememberLastConnectionFALSEWhat happens at startup and on DISCONNECT. TRUE: after the master password, BroadSQL reopens the connection that was active when it was last closed (never the CDF, never after a LOGOUT or a session ended at BroadSQL>), and DISCONNECT, BYE and CLOSE return to the previous connection of the session, then to BroadSQL>. FALSE: BroadSQL starts at BroadSQL> and DISCONNECT returns to it. Values TRUE or FALSE, not case-sensitive. Optional: if the key is absent, FALSE, without any message; any other value is FALSE, with an INFO message at startup. The last connection is kept, by connection ID only, in .broadsql/connection-state.properties in your user profile. Restart BroadSQL after changing it. Full explanation and examples: Starting, connecting and logging out.
ProductionConfirmEveryChangeTRUEHow often BroadSQL asks for a confirmation before a statement that can modify the database of a Connection whose Environment is flagged Production. TRUE: before every such statement. FALSE: before the first one of each connected session; reconnecting, switching Connections and LOGOUT ask again. Values TRUE or FALSE, not case-sensitive. Optional: if the key is absent, TRUE, without any message; any other value is TRUE, with an INFO message at startup. A change made in CONFIG applies at once; a change made in the file applies at the next start. Without an interactive terminal, such statements are refused whatever this value. See Production confirmation.
MaxRowXLSX500000Row-count threshold used only by DUMP <table> alone (no TO/AS) to decide its output format: at or below this count (or when the count cannot be determined), it uses the format from DefaultFileFormat below; above it, it always writes a tab-separated .txt file instead. Optional: if the key is absent, BroadSQL prints an INFO message once at startup and falls back to 500000. If it is present but not a valid integer (e.g. MaxRowXLSX=format), BroadSQL still starts and every unrelated command keeps working, but DUMP <table> alone refuses to run, with a clear error naming MaxRowXLSX and its invalid value, until the setting is corrected.
DefaultFileFormatODSDefault export format of DUMP (and of PULL, the same command) when AS <format> is omitted. One of XLSX, ODS, CSV, TXT (the TEXT format; not case-sensitive). Optional: if the key is absent, BroadSQL prints an INFO message once at startup and uses ODS. If its value isn't one of those four, BroadSQL prints an INFO message at startup and DUMP refuses the forms that rely on this default with a configuration error (DUMP <table> alone falls back to ODS); an explicit AS <format> always works. Full details in Export.
ScriptsLibraryscriptsThe Scripts Library: the one folder of reusable Scripts, run with @name or LIB RUN name and managed with the LIB commands and the BroadSQL Editor. A relative path is relative to the installation folder (see Paths). Optional: if the key is absent, or empty, BroadSQL prints an INFO message once at startup and uses scripts. The folder must exist to run or list Scripts (the Editor creates it with the first new Script), and it must be a folder, not a file. See Scripts Library.
JsScriptsjsscriptsFolder holding saved JS scripts, managed with JS LIST/JS RUN/JS FIND. The experimental JavaScript commands are separate from the Scripts Library and never use it. A .js file must be run with its extension (JS RUN name.js). Optional: if the key is absent, or empty, BroadSQL prints an INFO message once at startup and falls back to jsscripts. See JavaScript scripting.
WinEditPlus(empty)Read at startup but not currently used: the EDITOR command opens the BroadSQL Editor regardless of this value.
activatejlineONThe JLine interactive console, BroadSQL's standard console: command history (Up/Down, Ctrl+R), line editing and keyboard shortcuts, TAB completion (commands, SQL, database objects, stored names, APIs, file paths), colors (color, theme) and a table layout that follows the window width (displaymode). ON or OFF, not case-sensitive. Never changes what a command does or accepts: every command behaves identically whether ON or OFF; only interactive editing/completion conveniences differ. OFF explicitly selects the basic operating-system console instead, without these features. Optional: if the key is absent, it defaults to ON; any value other than ON or OFF also uses ON, and BroadSQL reports it once at startup. If JLine fails to initialize for any reason, BroadSQL prints one warning and falls back to the standard console rather than failing to start. See Interactive console for the keyboard shortcuts, TAB completion, history, colors and table layout.
jlinehistoryfilehistoryWhere JLine's persistent command history (Up/Down, Ctrl-R across sessions) is stored, only meaningful when activatejline=ON. The file keeps the last 1,000 lines typed, SQL and BroadSQL commands, in order, with their date and time (see History). Optional: if the key is absent, the default history applies: the file history of the installation folder, created with the first command. Empty (jlinehistoryfile=) designates the installation folder itself, which is a folder: BroadSQL says so at startup and keeps the history for the session only; nothing else is used in its place. An absolute path here is used exactly as given. A relative path (e.g. jlinehistoryfile=command-history) is relative to the installation folder, as every path setting; before 5.6.0 it was relative to .broadsql in the home folder, and an empty value meant .broadsql\history there (see History settings). If the resolved location can't be created or written, BroadSQL prints one warning and falls back to in-memory-only history for that session (Up/Down/Ctrl-R still work within the session; nothing is saved for next time) rather than failing to start. It must be a file, never a folder nor the path of scripthistoryvault: see History settings. A password is never written to history, in memory or on disk; the literal command you typed is stored, never a ${ENV:...}/VAR/:name reference's resolved value. See Universal API Client.
colorAUTOTerminal colors: syntax highlighting of what you type, colored ERROR/WARNING/INFO and success messages, and a colored prompt. AUTO uses colors only when the console is the JLine terminal and it reports color support; never with activatejline=OFF, and never when output is redirected to a file or a pipe. ON always emits colors, even when the terminal does not report support. OFF never does. Not case-sensitive. Colors only change how text looks: the text itself, what is written to log files, exports and command behavior are identical whatever the value. Optional: if the key is absent, or not one of these values, AUTO is used and BroadSQL reports it once at startup. See Interactive console.
themedefault-darkThe color theme used when colors are on (see color): default-dark (for dark backgrounds), default-light (for light backgrounds), classic (traditional red, yellow and green messages and bold keywords, readable on any background), high-contrast-dark, high-contrast-light, mono (bold, underline and inverse only, no colors) or none. none keeps the appearance BroadSQL had before themes existed: no syntax highlighting, plain prompt and messages, and JLine's own completion menu colors. Not case-sensitive. Optional: if the key is absent, or names no built-in theme, default-dark is used and BroadSQL reports it once at startup. See Interactive console.
displaymodeAUTOLayout of result tables (query results and the grids of commands such as SHOW TABLES, SHOW FK or LIB LIST) for the terminal width. NORMAL is the established layout: each column as wide as its header and declared size, values never shortened. COMPACT fits the table to the terminal: the widest columns are narrowed and longer values are shortened on screen with a trailing ~; when even that cannot fit, each row is shown vertically, one COLUMN: value line per column. WIDE keeps the NORMAL widths and adds a space on each side of the column separators. AUTO reads the actual terminal width before each table: COMPACT below 80 columns, WIDE from 160 columns, NORMAL in between, and NORMAL when the width is unknown (activatejline=OFF, redirected output); resizing the window applies to the next table. Display only: the values kept for <@last:...> and DUMP /, and every export, are never shortened. Independent of theme. Not case-sensitive. Optional: if the key is absent, or not one of these values, AUTO is used and BroadSQL reports it once at startup. See Interactive console.
apiproxymodeNONEEnterprise HTTP/HTTPS proxy for API execution (RUN/CONFIG API) only; never affects any other BroadSQL networking (database connections, etc.). NONE: no proxy. SYSTEM: use the operating system's own proxy configuration (Windows/JVM system proxy discovery), with no host/port needed below; note this mode sets a JVM-global property, so it is not strictly scoped to API traffic the way NONE/MANUAL are, though nothing else in BroadSQL currently makes outbound HTTP calls for this to affect. MANUAL: use the explicit apiproxyhost/apiproxyport (and optional apiproxytype/apiproxynonproxyhosts/credentials) below. See Universal API Client.
apiproxytypeHTTPMANUAL mode only: HTTP or SOCKS.
apiproxyhost(empty)MANUAL mode only: proxy host name or address.
apiproxyport(empty)MANUAL mode only: proxy port.
apiproxynonproxyhosts(empty)MANUAL mode only: pipe-separated hosts that bypass the proxy (* is a wildcard), e.g. localhost|127.*|*.corp.local.
apiproxyusername(empty)MANUAL mode only, optional proxy authentication. An environment-variable reference is strongly preferred over a literal value: ${ENV:NAME} (BroadSQL's own environment-variable syntax, e.g. apiproxyusername=${ENV:BROADSQL_PROXY_USER}), never logged.
apiproxypassword(empty)MANUAL mode only, optional proxy authentication, using the same ${ENV:NAME} convention as apiproxyusername above, never logged.
scripthistoryvault(empty)Where the Script Library's filesystem revision vault (version history for edited Scripts) stores its index and per-asset revisions. Same resolution rules as jlinehistoryfile above (empty: per OS user; relative: under the installation folder), except the default subfolder is script-history instead of history. Ships as a commented-out example (;scripthistoryvault=): uncomment and set only if you need it somewhere other than the default location. Optional: if the key is absent, or empty, it is stored at %USERPROFILE%\.broadsql\script-history (Windows) / $HOME/.broadsql/script-history (Linux/macOS). It must be a folder, and a different path from jlinehistoryfile; a new path starts an empty history, the old one is never moved: see History settings.

Obsolete settings

The former SqlLib, Scripts and ListSubfolders settings no longer exist. BroadSQL does not read them, does not migrate them and does not warn about them: a file that still contains them starts normally and they have no effect. Set ScriptsLibrary instead, and move your files by hand as described in the release notes. LIB LIST always lists Scripts in subfolders, so ListSubfolders is not needed.

prompt.text, ServersFileType and TemporaryFolder (all only in broadsqlux.ini, the Linux settings file of earlier releases) were never read by any current BroadSQL code either and have been removed from the official Linux template. The same "starts normally, has no effect" rule applies if your own file still has them.

[Log]

See Command activity log for full details, including file naming, finding a past session, and SET TRACE.

KeyDefault (shipped)Purpose
IsLogActivatedFALSE (Win) / TRUE (Linux)Master switch for the activity log. The Linux template turns it on, since Linux installations are more often run unattended, where a log from the first run is useful. Optional: if the key is absent, or not exactly true/false, BroadSQL prints an INFO message once at startup and falls back to false on both platforms.
LogFolderNameC:\\BroadSQL\\logs (Win) / logs (Linux)Folder the activity log is written to, with or without a trailing separator. A relative path is relative to the installation folder (see Paths): logs is the installation's own logs folder. Must already exist.
LogFileNamePatternBROADSQLFile name prefix for the activity log: <LogFileNamePattern>_<yyyyMMdd>_<HHmmss>_<Log ID>.log, or <LogFileNamePattern>_<connection>_<yyyyMMdd>.log with LogByConnection=TRUE.
LogByConnectionFALSEHow the activity is split into files. FALSE: one file per authenticated session, from the master password to LOGOUT or EXIT, whatever the connections it uses; SHOW SESSIONS lists them. TRUE: one file per connection and per day, as in releases up to 5.5.0. Only one layout is written at a time. It never turns logging on: with IsLogActivated=FALSE, nothing is logged. Values TRUE or FALSE, not case-sensitive. Optional: if the key is absent, FALSE, without any message; any other value is FALSE, with an INFO message at startup. Takes effect at the next start.
InstanceId(not in the shipped file)The identity of this installation, written in the header of every session log. BroadSQL adds it at its first start; it is read-only in CONFIG. See The Instance ID.
LogRetentionDays90At startup, BroadSQL deletes its own log files whose date is more than this number of days old: the activity log files (<LogFileNamePattern>_<yyyyMMdd>_<HHmmss>_<Log ID>.log (_SESSION_<yyyyMMdd>_<HHmmss>_<Session ID>.log before 5.6.0), <LogFileNamePattern>_<yyyyMMdd>.log and <LogFileNamePattern>_<connection>_<yyyyMMdd>.log in LogFolderName) and the application log files (broadsql_main_<yyyyMMdd>.log in the logs folder of the installation). A whole number from 0 to 3650; 0 keeps every file. Optional: if the key is absent (for example in a file from an earlier release), 90, without any message. Any other value deletes nothing at that start, with an INFO message. Exactly which files are deleted: Log retention.

The Instance ID

InstanceId identifies an installation, more exactly its INI file, in the activity logs it writes. It is not a user name and says nothing about the computer: 16 characters, digits and capital letters without I, L, O and U, drawn at random, for example InstanceId=7K3M9P2W5X8R4T6A.

  • At each start, BroadSQL reads it. When the line is absent (a new installation, or an INI file from an earlier release), BroadSQL creates one, saves a dated backup of the file (see Backups of the INI file), adds the line after the other [Log] settings and says so once:

`` INFO: This installation now has the Instance ID 7K3M9P2W5X8R4T6A, saved in broadsql.ini (previous file kept as broadsql_20261023_152006.bak). ``

  • It never changes afterwards. A value that is not a valid Instance ID is never replaced: BroadSQL starts, shows a WARNING naming the problem, and writes Instance ID : unavailable in the session logs until you correct it.
  • When the file cannot be written (read-only, no access to its folder), BroadSQL starts without an Instance ID, says why, and tries again at the next start. It never uses an identity it could not save.
  • A copied INI file keeps the same Instance ID. To give a copied installation its own identity, delete the InstanceId line in the copy while BroadSQL is closed: the next start creates a new one.

Several BroadSQL processes started at the same time on the same INI file agree on one Instance ID: the file is read again and written under a lock.

Backups of the INI file

Whenever BroadSQL changes its INI file, when CONFIG saves settings or when it adds the Instance ID, it first writes a copy of the file as it was, in the same folder, named <file name without extension>_<yyyyMMdd>_<HHmmss>.bak with the local date and time, for example broadsql_20261023_152006.bak. A second change in the same second adds _2, _3.

  • An existing backup is never overwritten, and BroadSQL never deletes backups: remove the old ones yourself.
  • The backup is read back and compared before the INI file is changed. If it cannot be written, the INI file is not changed and the reason is shown.
  • A backup holds every setting of the file, apiproxypassword included: protect it like the INI file (see Security).

Changing settings

Settings are read when BroadSQL starts. You can change them in two ways.

In CONFIG (Windows)

  1. Type CONFIG; and open the Application Settings tab.
  2. Select a setting. The panel shows what it does, its accepted values, its default, its value in the file, the value in use now, and when a change applies. For a path setting left empty, "In use now" shows the default path BroadSQL uses, followed by (default).
  3. Change the value and click Apply. The change is held in the window, marked "Edited, not saved".
  4. Click Save (or File > Save) to write the file. Revert drops the changes not saved yet.

The Status column tells:

StatusMeaning
DefaultThe file does not set it (or sets it empty): BroadSQL uses the default
In effectThe value in the file is the value in use
Restart neededThe file holds another value than the one in use: it applies at the next start
Invalid in fileThe value in the file is refused; BroadSQL uses the default until it is corrected
Read-onlyNot editable here (see below)

What to know:

  • Only ProductionConfirmEveryChange applies at once. Every other change takes effect at the next start of BroadSQL.
  • Type a path as it is: C:\temp\exports, not C:\\temp\\exports. BroadSQL writes the escaped form in the file and shows the path as you typed it when you open CONFIG again. On Windows, doubled backslashes typed here are reduced to one (the two that start a UNC path are kept), so saving the same path again never adds backslashes, and a value written with too many backslashes in the file is corrected when you save it. Accented and other non-ASCII characters are written as \uXXXX escapes, which read back the same whatever encoding a text editor assumes.
  • When you save, a folder that does not exist is named and BroadSQL asks whether to create it. Create the folder creates it, then saves; Cancel saves nothing and keeps your edit. If the folder cannot be created (access denied, a file of that name in the way), the reason is shown and nothing is saved. A path that names a file where a folder is expected, or a folder where a file is expected, is refused. Nothing is created before you answer.
  • An invalid value is refused when you click Apply, and nothing is written while any value is in error. Values that depend on each other are checked together (for example apiproxymode=MANUAL needs a host and a port, and jlinehistoryfile and scripthistoryvault need two different paths).
  • Saving changes only the values you edited: comments, the order of the lines and every other value stay exactly as they were. The previous file is kept as a new dated backup in the same folder, for example broadsql_20261023_152006.bak, and its name is shown (see Backups of the INI file).
  • If the file was changed by another program since the tab read it, nothing is written; click Reload, check the values, then save again (your edits are kept).
  • ServersFileName is read-only: changing the configuration database while you are logged in would bypass the checks of the login. Edit it in the file while BroadSQL is closed. InstanceId is read-only too (see The Instance ID). Settings that BroadSQL does not use, and settings defined on more than one line of the file, are read-only too.
  • Keys of the file that are not BroadSQL settings are listed under "Other entries in the file", with a suggestion when only the case differs (keys are case-sensitive: autocommit is not Autocommit).
  • apiproxypassword is never displayed: the tab shows "Not set", "Set (value hidden)", or the name of the environment variable it refers to. Prefer ${ENV:NAME} to a value written in the file.
  • LOGOUT closes the window: changes not saved are lost.

In the file

Edit the file with a text editor while BroadSQL is closed, then start BroadSQL. This is the only way on Linux, where CONFIG is not available.

A few settings also have a runtime command that changes the current session only, without touching the file: SET AUTOCOMMIT (Autocommit), SET TRACE (IsLogActivated, hidden command).

Found something wrong or unclear on this page? , with the page address.