On this page

Troubleshooting

Start from what you see. Each problem below gives the usual cause and the fix, with a link to the page that explains it. Got an error message? Look it up in Error messages, or paste it into the search (press /).

I cannot connect

ProblemCauseFix
(driver not found) next to a type, or JDBC driver class ... was not foundThe database's driver JAR is not installedCopy it into drivers, restart, check with SHOW DRIVERS;: Connect to your database
The connection test failsWrong URL, host, port, user or passwordEDIT CONNECTION <id>; and test again with PING <id>;
CONNECT ... refused: ... opens the BroadSQL configuration databaseThe connection points to the CDFDelete it: The configuration database
ENV PROD failsNo Database Group, or no PROD connection in itSHOW GROUP;: CONNECT versus ENV

My SQL is refused

ProblemCauseFix
No active database connection.BroadSQL starts at BroadSQL>, without a connectionCONNECT <id>;: Starting, connecting and logging out
Nothing happens after EnterThe statement has no closing ; yetType ;, or Esc to abandon it: Entering commands
The commands after a failed one did not runOn one typed line, a failure stops the restRun them again, one per line if needed
Authentication required: enter the master password first.The session was locked with LOGOUTType the master password

A change to production was refused

ProblemCauseFix
Production change refused ...: the change was not confirmedThe answer to Execute? [yes/no] was not yesRun it again and answer yes: Production confirmation
... no interactive confirmation is availableNo terminal to ask (input redirected, unattended run)Run the change interactively: Without a terminal
BroadSQL asks before a statement that only readsThe statement is one it cannot classify (a procedure call, a block)Answer the question, or see What asks and what does not

A Script does not do what I expect

ProblemCauseFix
requires argument ...A required parameter was not passedPass name=value, or LET it first: Arguments
Variable ... is not defined.A ${name} has no valueSHOW SCRIPT VARIABLES;, then declare or set it: Variables
The Script went on after an errorON ERROR CONTINUE is the defaultAdd ON ERROR STOP;: Error handling
Earlier changes vanished after an errorA failed statement rolls back the pending transactionContinuing is not keeping the transaction
is written for Oracle; the current connection's type is H2The Script's -- @dialect names another typeA warning: check the connection
A Script is not foundA plain name always starts at the library root; nothing is searchedGive the path under scripts/: Running Scripts

An export or a load fails

ProblemCauseFix
APPEND refused: ...The result's columns differ from the destination'sSelect and alias the same columns: Local H2 datasets
MERGE refused: ...A NULL or duplicate keyFilter the rows or choose another key: MODE MERGE KEY
DUMP LIB ... not exported: ...The Script did not end with SUCCESSFix its errors: Exporting Script results
An export refused because the result was cutDUMP / exports what was displayed, which stopped at MaxRowsOnScreenUse DUMP (<query>), which runs the query and exports every row
LOAD refuses a headerA CSV header names no column of the tableRename the header: Importing data
LOAD writes nothing in a ScriptPlain LOAD asks for a confirmation, which a Script cannot giveUse LOAD ... EXECUTE: Using LOAD in scripts

The console behaves oddly

ProblemCauseFix
Ctrl+C does not stop a query at onceThe database driver decides when the statement stopsWait, or press Ctrl+C again: Ctrl+C during a command
No colorsColors are off when the terminal does not report themThe color setting: Colors and themes
<@clipboard> fails on LinuxNo graphical environment in the sessionPut the values in a file and use <@file>
No activity logThe log folder does not existLogFolderName=logs: Command activity log

The limits listed on each guide

Each guide ends with the problems of its own subject: Arguments and parameters, The configuration database, Connections, API Client.

Still stuck? Tell us what you typed and what BroadSQL printed.

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