MySQL Workbench is a cross-platform graphical tool for MySQL database administration. It brings together everything a database developer or administrator needs in one interface — a SQL query editor, schema designer, user and privilege management, server configuration, backup tools, and database migration support.
Instead of managing MySQL purely through the command line, Workbench gives you a visual way to browse tables, run queries, manage users, and monitor server performance.
This guide shows you how to install MySQL Workbench on Ubuntu 18.04 and how to configure a remote database connection using SSH tunneling.
<strong>Prerequisite:</strong> You need sudo access.
MySQL Workbench is available in Ubuntu’s default repositories. Update the package list and install it:
bashsudo apt updatesudo apt install mysql-workbench
<strong>Note:</strong> The version in Ubuntu's default repositories may not always be the latest release. Visit the <a href="https://dev.mysql.com/downloads/workbench/">MySQL Workbench downloads page</a> to download a specific version if needed.
Once installed, launch it from the Activities menu or from the terminal:
bashmysql-workbench
The MySQL Workbench home screen appears on first launch. It shows your saved connections and gives you quick access to the schema designer, migration tools, and query history.
One of the most useful features in MySQL Workbench is SSH tunneling. Instead of exposing your MySQL server port to the internet, you connect to the database through an SSH session. Your MySQL port stays private — you only need SSH access to the remote host.
To add a new connection, click the ⊕ icon next to “MySQL Connections.”
In the setup form that opens, fill in the following fields:
127.0.0.1Click Test Connection when done. If this is your first time connecting to the server, MySQL Workbench shows an “SSH Server Fingerprint Missing” prompt; click Continue to accept and save the fingerprint.
A successful test shows a confirmation message. Click OK and then Close. The new connection appears on the Workbench home screen. Double-click it to open.
After connecting, MySQL Workbench gives you full access to the remote server from your local machine. The Schema panel on the left lists all databases and their tables.
From here you can:
To keep MySQL Workbench up to date, run a standard system upgrade:
bashsudo apt updatesudo apt upgrade
MySQL Workbench is now installed and connected to your remote MySQL server on Ubuntu 18.04. The SSH tunnel approach keeps your database secure without any extra firewall configuration. Leave a comment below if you run into any issues during setup.
Squid is a full-featured caching proxy server that supports HTTP, HTTPS, and FTP. It is most…
Chromium is a fast, lightweight, open-source web browser developed primarily by Google. It serves as the…
NFS (Network File System) is a distributed file sharing protocol that lets you mount remote directories…
VirtualBox is an open-source, cross-platform virtualization application that lets you run multiple operating systems simultaneously on…
SSH (Secure Shell) is a cryptographic network protocol that creates a secure, encrypted connection between your…
Node.js is an open-source, cross-platform JavaScript runtime that lets you run JavaScript on the server side,…