Install MySQL Workbench
To install MySQL Workbench on Ubuntu, you can use either the APT repository or Snap package method. The APT method is recommended for full compatibility and updates.
Here’s a step-by-step guide to installing MySQL Workbench using the APT repository:
🛠️ Method 1: Install via APT Repository (Recommended)
- Update your package list:
sudo apt update - Install MySQL Workbench:
sudo apt install mysql-workbench - Launch the application:
- You can start MySQL Workbench from the terminal:
mysql-workbench - Or find it in your application menu.
- You can start MySQL Workbench from the terminal:
This method installs the version provided by Ubuntu’s default repositories. If you want the latest version, use the official MySQL APT repository.
📦 Method 2: Install via Snap Package
- Install Snap (if not already installed):
sudo apt install snapd - Install MySQL Workbench using Snap:
sudo snap install mysql-workbench-community
Snap packages are sandboxed and may have limitations with system integration, but they’re easy to install and update.
🧰 Optional: Install MySQL Server (if not already installed)
MySQL Workbench requires a running MySQL server to connect to. To install it:
sudo apt install mysql-server
sudo systemctl start mysql
sudo systemctl enable mysql
🧪 Verify Installation
- Open MySQL Workbench and try connecting to your local MySQL server.
- If you encounter issues, check for missing dependencies or run:
sudo apt --fix-broken install