0% found this document useful (0 votes)
11 views28 pages

Install MySql Workbench

Uploaded by

bitstdiplab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views28 pages

Install MySql Workbench

Uploaded by

bitstdiplab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

M.

Tech/MS in Artificial Intelligence & Cyber Security


FT BATCH 2 - Nov 2023

How to Install MySQL and MySQL Workbench on Windows


By Kiran Kumar KV, RACE, REVA University

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

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?

Find the
official website for MySQL Workbench: https://www.mysql.com/products/workbench/
Now click on the "DOWNLOADS" tab.

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

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 1 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

Click on MySQL Community (GPL) Downloads ».

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.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 2 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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".

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".

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 3 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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".

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 4 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 5 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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".

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 6 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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".

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 7 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 8 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 9 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 10 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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

Next
Click "Finish" to complete the installation.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 11 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 12 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023
Therefore, I am going to the "C" drive and opening the "Program Files" directory.

Go to the "MySQL" folder.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 13 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

Then go to the MySQL Server folder.

Go to the "bin" folder.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 14 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

Copy the path/address.

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

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 15 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

Click "Environment Variables".

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 16 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

Select the "Path" and click "Edit".

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.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 17 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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

Go to the "bin" folder.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 18 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

Copy the path/directory.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 19 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 20 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

Now click "OK".

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 21 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023
Click "OK" again.

And click "OK" one more time.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 22 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 23 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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".

This is your default MySQL Workbench workspace.

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 24 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

Workbench workspace

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

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 25 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 26 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

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

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 27 OF 28


M.Tech/MS in Artificial Intelligence & Cyber Security
FT BATCH 2 - Nov 2023

mysql -u root -p
show databases;

REVA ACADEMY FOR CORPORATE EXCELLENCE PAGE 28 OF 28

You might also like