0% found this document useful (0 votes)
3 views

Lab Plan 1

This document provides a comprehensive guide for installing MySQL, a popular open-source relational database management system. It outlines the steps for downloading, installing, and configuring MySQL on Windows, including setting environment variables and verifying the installation. The guide is designed to assist both beginners and advanced users in setting up MySQL for various applications.

Uploaded by

saimnaeem9020
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Lab Plan 1

This document provides a comprehensive guide for installing MySQL, a popular open-source relational database management system. It outlines the steps for downloading, installing, and configuring MySQL on Windows, including setting environment variables and verifying the installation. The guide is designed to assist both beginners and advanced users in setting up MySQL for various applications.

Uploaded by

saimnaeem9020
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

CS-408 Database Systems

Lab Plan 1 : My SQL Installation

Introduction
MySQL is a widely-used open-source relational database management system (RDBMS).

It is used for managing and organizing data in relational databases by defining
relationships between data objects and tables.
MySQL is the most popular database management system for websites and web-based
applications, and is also used for many other applications including data warehousing, e-
commerce, and logging applications.
MySQL is easy to use and has a user-friendly interface, making it accessible to both
beginner and advanced users.
It is highly customizable, and offers a variety of programming interfaces, including
command-line, GUI tools, and APIs for various programming languages.
Additionally, MySQL supports a wide range of operating systems, including
Windows, MacOS, Linux, and Unix.
How to install
If you are using Windows.
Google mysql https://www.mysql.com/
Open website
Click on downloads tab
Scroll down and click on MySQL Community (GPL) Downloads »
Now click on MySQL Installer for Windows
Now download this:

Windows (x86, 32-bit), MSI


8.0.31 431.7M Download
Installer

(mysql-installer-community- MD5: ef57176fcb01f01f4e87dbba9b87a


8.0.31.0.msi) c6f | Signature
Now start the installation once the installer is downloaded.

Choose a setup type.


Check the custom option.
Click Next
On the next window “select Product”
Open up MySQL server and click on My
SQL server 8.0.31 and press green arrow
button to add it in the “products to be
installed” pane.
Then Open up Applications tab and add
“My SQL workbench” in the right pane.
Then open up My SQL Shell and add it to
the right pane for the products to be
installed.
Then click Next.
Now click the “Execute” button.
It will take a bit time.
Ifyou do not have Visual c++ in your system then click I
agree and install it.
Afterinstallation is complete click close. Meanwhile the
above setup is also ready to install.
Now click on “Execute” button. It
will install these three products
one by one.
Itmay take a bit time depending
on your system.
Your SQL server is ready to
configure. Click Next.
On the next window as shown
below, do not change any port
number etc and click Next.
Check the option “Use Strong Password
Encryption for Authetication(RECOMMENDED)”.
Click Next
Set a password
If you want o add user, you can add here
otherwise leave blank and click Next.

Onthe next page your server name appears. Without


making any change.
Click Next
Click “Execute”
Execution will start and it will
take a bit time.
Once the configuration is
complete, click Finish.

On the next window where it shows


that configuration complete, Click
Next.
Click Finish.
You are ready to work
MySQL Shell
MySQL Workbench
Set Environment Variable
 Close MySQL shell and benchwork
 Go to C:/ drive
 Go to Program Files
 Go to MySQL
 Go to MySQL Server 8.0
 Go to Bin
 Copy the path
 Set the “environment variable.”
 To set the environment variable:
 start>> edit the system variable>> a dialog box appears>> click on environment
variable”>> click on the path in variables in>>click edit>>a new dialog box
appears>> click new>> paste the copied path>>Press OK>> press OK>> press OK.
To set the environment variable:
Windows search bar
edit the system variable
a dialog box appears
click on “environment variable”
click on the path in variables in
click edit
a new dialog box appears
click new
paste the copied path
Press OK>> press OK>> press OK.
To check MySQL is successfully installed
Open command prompt “cmd”
Write the command “mysql --version”
It will show you the version installed on your system
As we have set password we need to add password to open it using cmd
Write the command “ mysql –u root –p”
It will ask for the password. Give the password

You might also like