Connect to another JDBC database
BroadSQL connects to any database with a JDBC driver: the same steps apply, with the driver and the URL format of that database.
| Driver | Bundled for HSQLDB; for any other database, Apache Derby included, its vendor's JDBC driver JAR in drivers. |
|---|---|
| URL format | the URL format of the vendor's JDBC driver |
| Example | see the vendor's driver documentation |
| Verified with BroadSQL | Depends on the database: see the vendor's documentation. |
Steps
- The driver: HSQLDB is included in BroadSQL (the
CINEMAsample is an HSQLDB database: see Sample databases). For another database (Apache Derby included, since BroadSQL 5.5.5), download its vendor's JDBC driver and copy the JAR directly into thedriversfolder, then restart BroadSQL. - Check it:
SHOW DRIVERS;lists the drivers, with their names, versions and source:Bundledordrivers folder. A JAR copied while BroadSQL was running is listed withRestart BroadSQL to load it. - The connection:
ADD CONNECTION <id>;(orCONFIG;on Windows). Choose your database in the list of types, then give the URL in the format documented by the driver's vendor. - Test and open it:
PING <id>;, thenCONNECT <id>;.
If your database does not appear in the list of types, tell us which database and which driver you use.
What works on every database
Ordinary statements, the commands that browse tables and columns (DESCR, SHOW TABLES...) and DUMP work the same way on every database type reachable through a registered connection. A few behaviors depend on the type: see Behavior that differs by database type.
Related
Found something wrong or unclear on this page? Tell us, with the page address.