Install MySql Workbench
Install MySql Workbench
In this tutorial, I will show you how you can install and configure your Windows machine for this MySQL and
MySQL workbench from scratch.
Find the
official website for MySQL Workbench: https://www.mysql.com/products/workbench/
Now click on the "DOWNLOADS" tab.
After that, on the new page, click "MySQL installer for Windows".
From the drop-down menu, select your operating system as "Microsoft Windows". Then download the file which
is larger in size.
A .msi file will be downloaded. That is our installer file to install MySQL and MySQL workbench.
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".
Execute
In the Product Configuration window, simply click "Next". It will install the three selected components for us.
Next
Keep everything as it is and simply click "Next". It will configure the MySQL Server.
Next
Keep everything as it is and simply click "Next". It will apply the TCP/IP connectivity for our MySQL server.
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".
Next
Keep everything as it is, and simply click "Next". It will make sure to setup our root password for the MySQL
workbench.
R
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".
Next
Select the option to grant full access to the user running the Windows Service and then click "Next."
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.
Execute
It might take some time. Then when you will receive a green check box in all configuration steps, simply click
"Finish".
Finish
The configuration has beep applied successfully. Simply click "Next".
Next
Click "Finish" to complete the installation.
Finish
It will open the MySQL Workbench and MySQL Shell. Simply close all of them now.
ð 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.
Now open the Environment Variables settings. Simply click on the Windows button and type "env".
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.
Now, we need to do the same thing for the MySQL Shell also. Open the MySQL Shell folder now.
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.
ð Finishing Up
Our task is now finished. You can now open the MySQL Workbench.
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".
Workbench workspace
If you want then you can also hide the SQL Additions tab by clicking on the colored box.
For getting the Schemas, click on the "Schemas" tab from the navigator.
Your MySQL Workbench is also ready for any kind of development process. You can also use MySQL from your
terminal as well.
mysql -u root -p
show databases;