If you want to learn MySQL, starting with a good client is super helpful – especially when you are just beginning your journey.

There are a lot of clients out there for your MySQL-based needs, like XAMPP, DataGrip, and others. Among all of them, I prefer the MySQL Workbench. It is completely free, by the way.

In this tutorial, I will show you how you can install and configure your Windows machine for this MySQL and MySQL workbench from scratch.

If you enjoy learning from videos as well, then don't worry as I have also created a step-by-step video just for you:

How to Install MySQL Workbench

➡️ Download MySQL Workbench

Make sure to visit only the official website for downloading the MySQL Workbench. You do not want to get into shoddy websites and download the wrong file that infects your favorite machine, right?

2023-06-28_10-32
Find the official website for MySQL Workbench: https://www.mysql.com/products/workbench/

Now click on the "DOWNLOADS" tab.

2023-06-28_10-32_1

Scroll down until you find MySQL Community (GPL) Downloads ».

2023-06-28_10-32_2

Click on MySQL Community (GPL) Downloads ». After that, on the new page, click "MySQL installer for Windows".

2023-06-28_10-32_3

From the dropdown menu, select your operating system as "Microsoft Windows". Then download the file which is larger in size.

2023-06-28_10-33

A .msi file will be downloaded. That is our installer file to install MySQL and MySQL workbench.

➡️ Install both MySQL and MySQL Workbench

Simply double click on the installer file. It will reload the necessary components and open the installer GUI selection window. Choose the setup type as custom and click "Next".

2023-06-28_10-34_1
Select Custom

A new page will appear. Make sure to select the latest "MySQL Server", "MySQL Workbench" and "MySQL Shell". Selecting and clicking on the right side arrow will take the product name in the "Products to be installed section". Then click "Next".

2023-06-28_10-34-1
Install necessary components

Click "Execute" to install the three necessary components. The process might take some time depending on your internet speed and computer configuration. After it gets finished, simply click "Next".

2023-06-28_10-35
Execute

In the Product Configuration window, simply click "Next". It will install the three selected components for us.

2023-06-28_10-37
Next

Keep everything as it is and simply click "Next". It will configure the MySQL Server.

2023-06-28_10-37_1
Next

Keep everything as it is and simply click "Next". It will apply the TCP/IP connectivity for our MySQL server.

2023-06-28_10-37_2
Next

Now give it a Root password. For testing purposes, I am using a very simple "1111" as my password, but I would recommend not doing the same. Also, make sure to remember the password as you will need it when you want to work in MySQL Workbench. Click "Next".

2023-06-28_10-37_3
Next

Keep everything as it is, and simply click "Next". It will make sure to setup our root password for the MySQL workbench.

2023-06-28_10-38
Root password

We want to run the service as a Standard System Account for our operating system. Therefore, keep everything as it is, and simply click "Next".

2023-06-28_10-38_1
Next

Select the option to grant full access to the user running the Windows Service and then click "Next."

2023-06-28_10-38_2
Next

Then click "Execute". This will grant the full access to the user running the Windows service and the administrator group only, but the other users and groups will not have its access.

So if you have multiple user accounts in your computer, then they will not be able to access the MySQL server/Workbench. If you want then you can change the settings here based on your need.

As I have only one user account in my Windows machine, I can safely keep the first option selected.

2023-06-28_10-38_3
Execute

It might take some time. Then when you will receive a green check box in all configuration steps, simply click "Finish".

2023-06-28_10-38_4
Finish

The configuration has beep applied successfully. Simply click "Next".

2023-06-28_10-39
Next

Click "Finish" to complete the installation.

2023-06-28_10-39_1
Finish

It will open the MySQL Workbench and MySQL Shell. Simply close all of them now.

2023-06-28_10-39_1-L

➡️ Configuration

Now we need to configure the path variables for our operating system. Go to the drive where you have installed your Windows operating system. Like others, I have also installed my operating system on the "C" drive.

Therefore, I am going to the "C" drive and opening the "Program Files" directory.

2023-06-28_10-40

Go to the "MySQL" folder.

2023-06-28_10-40_1

Then go to the MySQL Server folder.

2023-06-28_10-40_2

Go to the "bin" folder.

2023-06-28_10-40_3

Copy the path/address.

2023-06-28_10-40_4

Now open the Environment Variables settings. Simply click on the Windows button and type "env".

2023-06-28_10-40_5

Click "Environment Variables".

2023-06-28_10-41

Select the "Path" and click "Edit".

2023-06-28_10-41_1

Click "New". A new blank box will appear. Paste the path/address that you copied earlier. Do not close the window now as we need to do the same thing for the MySQL Shell folder.

2023-06-28_10-41_2

Now, we need to do the same thing for the MySQL Shell also. Open the MySQL Shell folder now.

2023-06-28_10-41_3

Go to the "bin" folder.

2023-06-28_10-41_4

Copy the path/directory.

2023-06-28_10-42

Now apply the same process as you did earlier. Click "New" on the Edit environment variable window. Paste the path/directory in the new blank box.

2023-06-28_10-42_1

Now click "OK".

2023-06-28_10-42_2

Click "OK" again.

2023-06-28_10-42_3

And click "OK" one more time.

2023-06-28_10-42_4

➡️ Finishing Up

Our task is now finished. You can now open the MySQL Workbench.

2023-06-28_10-43

Simply click on the Local instance. It will ask for the root password. Enter the password. If you do not want to go into the same hassle of entering a password every time, check the box on save password in the vault. Click "OK".

2023-06-28_10-43_1

This is your default MySQL Workbench workspace.

2023-06-28_10-43_2
Workbench workspace

If you want then you can also hide the SQL Additions tab by clicking on the colored box.

2023-06-28_10-43_3

For getting the Schemas, click on the "Schemas" tab from the navigator.

2023-06-28_10-43_4

Your MySQL Workbench is also ready for any kind of development process. You can also use MySQL from your terminal as well.

2023-06-28_10-43_5
2023-06-28_11-32

Conclusion

Thank you for reading the entire article.

If you have any questions, feel free to reach out to me using Twitter or LinkedIn.

Also, make sure to follow me on GitHub!

You can also subscribe to my YouTube channel for more helpful video content.

If you are interested then you can also check my website: https://fahimbinamin.com/

Have a great day! 😊

Cover: Photo by Boitumelo Phetla on Unsplash