SQL Workbench/J is a cross-platform graphical database query tool written in Java. All you need to run it is to download and extract the zip distribution and have the JRE and JDBC drivers for your DBMS installed.
These instructions were tested on Ubuntu 18.04 LTS with the Gnome Shell desktop environment. YMMV.
- Verify that the JRE is installed:
java -version
-
Check that you have the JDBC driver for your DBMS. On Ubuntu Linux 18.04 LTS those that ship with the system can be found under /usr/share/java, like "postgresql.jar".
-
Download the latest stable zip distribution of SQL Workbench/J.
-
Extract to the location of your choice, like "$HOME/app/sqlworkbench":
mkdir $HOME/app/sqlworkbench
unzip -d $HOME/app/sqlworkbench Workbench-Build123.zip
- Set sqlworkbench and sqlwbconsole.sh to executable:
chmod $HOME/app/sqlworkbench/ugo+x sqlworkbench.sh
chmod ugo+x $HOME/app/sqlwbconsole.sh
- Create a sqlwb.desktop file for the application under $HOME/.local/share/applications:
[Desktop Entry]
Name=SQL Workbench/J
GenericName=Database Browser
Comment=Browse databases
Exec=/home/myuser/app/sqlworkbench/sqlworkbench.sh
Terminal=false
Type=Application
Icon=/home/myuser/app/sqlworkbench/workbench32.png
Categories=Development;Utility;
StartupNotify=true
- Create symlinks for command line use:
ln -s ~/app/sqlworkbench/sqlworkbench.sh ~/bin/sqlworkbench
ln -s ~/app/sqlworkbench/sqlwbconsole.sh ~/bin/sqlwbconsole
- Test by running "sqlworkbench".