A Complete Guide on MySQL Workbench

MySQL Workbench is a visual tool developed by Oracle, which helps to administer MySQL Databases. It is known for being a cross-platform software that allows MySQL to run on many platforms such as Windows, Linux, and macOS.

What is MySQL?

MySQL is an open-source Relational Database Management System (RDBMS) developed by Oracle Corporation, Sun Microsystems, that uses Structured Query language(SQL) to interact with databases. You can use MySQL to store, retrieve, manipulate and process data that is in the form of tables.

Learn the Ins & Outs of Software Development

Caltech Coding BootcampExplore Program
Learn the Ins & Outs of Software Development

Why Use MySQL?

There are various relational database management systems present in the tech world today, such as Microsoft SQL Server, Microsoft Access, Oracle, DB2, etc.

Here are some reasons why people use MySQL over other Database Management Systems. 

  • Multiple Storage Engines

MySQL adheres to multiple storage engines, and each one of the storage engines possesses unique features, while other databases like SQL Server only support a single storage engine.  

  • InnoDB: It is the default storage engine fabricated with MySQL since version 5.5. It supports ACID-based transactions.
  • MyISAM: Former to version 5.5, MyISAM was the default storage engine used by MySQL. It does not support ACID-based transactions.

  • Start Your Journey to Data Mastery

    SQL Certification CourseExplore Program
    Start Your Journey to Data Mastery

    High Performance

MySQL has reported high performance compared to other database management systems because of its simplicity in design, and adherence to multiple storage engines.

  • Cost-Effective

The community edition of MySQL is free of cost, and the commercial edition has a licensing fee, which is cost-effective compared to other products available in the market.

  • Cross-Platform

MySQL runs on Windows, Linux, and macOS because of its cross-platform property.

With this, it is clear why MySQL is used. Now, you will see what MySQL Workbench exactly is and how one can use it.  

What is MySQL Workbench?

MySQL Workbench is a unified cross-platform, open-source relational database design tool that adds functionality and ease to MySQL and SQL development work. MySQL Workbench provides data modeling, SQL development, and various administration tools for configuration. It also offers a graphical interface to work with the databases in a structured way.

  • You can create a Graphical Model using MySQL Workbench
  • MySQL Workbench provides reverse engineering for live databases to models
  • MySQL Workbench offers a forward engineering model to a script/live database

Learn 15+ In-Demand Tools and Skills!

Automation Testing Masters ProgramExplore Program
Learn 15+ In-Demand Tools and Skills!

MySQL Workbench - Modeling and Designing Tool

  • MySQL Workbench possesses tools that allow database administrators to virtually create physical database design models that can be easily transitioned into MySQL databases using forward engineering.
  • MySQL Workbench adheres to all objects such as tables, views, stored procedures, triggers, etc.
  • MySQL Workbench also creates models from a target database or even imported SQL files.

MySQL Workbench - SQL Development Tool

  • MySQL Workbench comes with a visual SQL editor.
  • The Visual SQL editor gives developers the access to build, edit, and run queries against MySQL server databases. It has utilities for viewing data and exporting it.
  • MySQL Workbench has auto-complete and color highlighters that aid in the writing and debugging of SQL statements, easily.
  • Multiple queries can be run at a time, and the result is automatically displayed.
  • It also saves the queries in the history panel for previewing and running it later on.

MySQL Workbench - SQL Administration Tool

MySQL Workbench makes user management much easier.

  • You can view the account information of all users on the MySQL server
  • MySQL Workbench gives access to add and remove users
  • MySQL Workbench grants and revokes privileges
  • You can modify global and database permissions on the MySQL server
  • You can change passwords using MySQL
  • You can audit to see who did what and when on the server

Learn the Ins & Outs of Software Development

Caltech Coding BootcampExplore Program
Learn the Ins & Outs of Software Development

How to Install MySQL Workbench?

Moving on, you will look at how to install MySQL Workbench on Windows. The installation process is similar to other operating systems.

  1. Open the MySQL website on a browser. Click on the following link: MySQL Downloads.
  2. Select the Downloads option.
  3. Select MySQL Installer for Windows.
  4. Choose the desired installer and click on download.
  5. After it downloads the installer, open it.
  6. It will ask for permission; when it does, click Yes. The installer will then open. Now, it will ask to choose the setup type, here, select Custom.
  7. Click on Next. With this, you will be able to install MySQL server, MySQL Workbench, and MySQL shell.
  8. Open MySQL Servers, select the server you want to install, and move it to the  Products/Features to be installed window section. Now, expand Applications, choose MySQL Workbench and MySQL shell. Move both of them to ‘Products/Features to be installed’.
  9. Click on the Next button. Now, click on the Execute button to download and install the MySQL server, MySQL Workbench, and the MySQL shell.
  10. Discover SQL and Database Management

    SQL Certification CourseExplore Program
    Discover SQL and Database Management
  11. Once the product is ready to configure, click on Next. Under Type and Networking, go with the default settings and select Next.
  12. For authentication, use the recommended strong password encryption.
  13. Set your MySQL Root password and click on next.
  14. Go for the default windows service settings and under apply configuration, click on execute. Once the configuration is complete, click on finish.
  15. Complete the installation. This will now launch the MySQL Workbench and the MySQL Shell.

Once MySQL Workbench is installed, select the Local instance and enter the password.

Now, you can use the MySQL query tab to write your SQL queries. 

  • Check the databases that are present in MySQL using the following command:

Show Databases;

In the result grid, you can see the list of databases that are already present.

  • To choose a database and display the tables in the database, execute the below queries: 

Use sql_intro;

Show Tables;

Here, you must are select the sql_intro database and display the tables that are present in it.

  • Display the records present in the products table.

Select * from products;

Obtain Your SQL Certification

SQL Certification CourseExplore Program
Obtain Your SQL Certification

Conclusion

MySQL Workbench is widely used to handle structured data. In this tutorial, you learned the steps to install MySQL Workbench on Windows. You also explored a few commands on the query editor. 

If you are looking to enhance your software development skills, we highly recommend you to check Simplilearn's SQL Certification Course. This course can help you hone the right skills and make you job-ready in no time.

Do you have any questions regarding this ‘MySQL Workbench’ tutorial? If you do, then please put it in the comments section. Our team will help you solve them, at the earliest!

About the Author

SimplilearnSimplilearn

Simplilearn is one of the world’s leading providers of online training for Digital Marketing, Cloud Computing, Project Management, Data Science, IT, Software Development, and many other emerging technologies.

View More
  • Disclaimer
  • PMP, PMI, PMBOK, CAPM, PgMP, PfMP, ACP, PBA, RMP, SP, OPM3 and the PMI ATP seal are the registered marks of the Project Management Institute, Inc.