Skip to content
Follow
Ubuntu Linux

How to Install MySQL Workbench on Ubuntu Linux

Richard
Written by
Richard
Oct 18, 2021 Updated Aug 13, 2026 2 min read
How to Install VMware Workstation Player on Ubuntu Linux
How to Install VMware Workstation Player on Ubuntu Linux

MySQL Workbench for Ubuntu Linux is a free desktop app that gives you a visual dashboard to manage databases, run SQL queries, and design tables without using the command line. Installing version 8.0 directly from the official software repositories ensures you get stable updates and security patches on Ubuntu 22.04 LTS and newer systems.

Setting up this tool takes just a few terminal commands and lets you connect to local databases or remote servers instantly.

⚡ Quick Answer

Install MySQL Workbench on Ubuntu by running “sudo snap install mysql-workbench-community” in the terminal. You can then launch it from the command line or your applications menu.

How to install MySQL Workbench from Snap

Snap packages offer an alternative method for installing MySQL Workbench on Ubuntu. Open your terminal and type `sudo snap install mysql-workbench-community`. This command installs the community version of MySQL Workbench, even if that release isn’t part of standard Ubuntu software lists.

Snap package management provides access to the community build. Run the commands below to install Snap’s MySQL Workbench community version.

🐧Bash / Shell
sudo snap install mysql-workbench-community

Once Workbench is installed, launch it from the command line by typing `mysql-workbench-community` or by clicking the MySQL Workbench icon in Activities - Overview - MySQL Workbench

MySQL Workbench installation process on Ubuntu Linux
ubuntu install mysql workbench on ubuntu

To connect to a database server, head to Database ==> Connect to Database. New connections require clicking the circled plus sign ⊕ next to “MySQL Connections.”

After installation completes, configure a new connection by entering database server login credentials. A successful connection test confirms the setup works correctly.

MySQL and MariaDB using root passwords

Troubleshoot root login failures on Ubuntu MySQL or MariaDB instances by checking a security setting called `auth_socket`.

The `auth_socket` plugin authenticates users connecting from the local host via the Unix socket file, which acts as a secure channel. This behavior prevents root authentication through traditional password prompts.

Disabling the `auth_socket` plugin requires running specific SQL commands. Modifying this setting enforces root password authentication instead of passwordless local access.

MySQL:

💻Code
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'type_strong_password_here';

MariaDB:

💻Code
UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE User='root';

Database administrators should now achieve successful root login using password authentication.

Conclusion:

  • MySQL Workbench is a powerful tool for managing MySQL and MariaDB databases.
  • The installation process on Ubuntu is simple and can be done through Snap.
  • Users can create and manage databases, users, and run SQL queries efficiently.
  • Auth_socket authentication can be modified to use password authentication for root users.
  • Ubuntu provides an accessible platform for beginners to start learning Linux and database management.
  • Overall, MySQL Workbench enhances productivity and simplifies database interactions for both new and experienced users.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Turn "Week Numbers" On or Off for Calendar in Ubuntu Linux
Ubuntu Linux How to Turn "Week Numbers" On or Off for Calendar in Ubuntu Linux
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04
How to Install Ubuntu Linux
Ubuntu Linux How to Install Ubuntu Linux

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *