It supports managing databases and users, creating and running SQL queries, configuring servers, taking backups, performing migrations, and much more. Whether you’re a new user or a professional, MySQL Workbench makes managing MySQL databases easy. Workbench will also work with MariaDB databases since MariaDB is a drop-in replacement for MySQL. You should able be able to install Workbench and use it on other Linux distributions, not just Ubuntu Linux. Also, for students and new users learning Linux, the easiest place to start learning is Ubuntu Linux. Ubuntu is the modern, open-source Linux operating system for desktops, servers, and other devices. Ubuntu is a great Linux operating system for beginners. To get started with installing MySQL Workbench on Ubuntu Linux, follow the steps below.
How to install MySQL Workbench from Snap
Installing MySQL Workbench on Ubuntu is a pretty straightforward process. The workbench package can’t be found in the Ubuntu repository starting with Ubuntu 20.04. You can use Snap package management to install the community version. Simply run the commands below to install the MySQL Workbench community version from Snap. Once Workbench is installed, you can start it either from the command line by typing mysql-workbench-community or by clicking on the MySQL Workbench icon from Activities -> Overview -> MySQL Workbench. To connect to a database server, click Database ==> Connect to Database. You can also add a new connection by clicking on the circled plus sign ⊕ next to “MySQL Connections”. Set up a new connection, type in the database server credentials, and test the connection. Once everything is entered correctly, it should be added and ready to use.
MySQL and MariaDB using root passwords
Both MariaDB and MySQL servers come with the root user set to use the auth_socket authentication method by default. The auth_socket plugin authenticates users that connect from the local host through the Unix socket file. This means that you can’t authenticate as a root by providing a password. However, you can disable the auth_socket plugin using the SQL commands below. If you do, then you’ll be required to type the root password to log on. MySQL: MariaDB: You should be able to log in with the root password. Conclusion: This post showed you how to install and use MySQL Workbench on Ubuntu Linux. If you find any error above, please use the comment form below.