MySQL Installation
MySQL Installation
Version Information:
● Windows 10 Pro
● Mysql Community Server 8.0.12
Step 1:
By clicking on the above URL, you will see the below options. Select your
operating system (Microsoft Windows) and click on Go to Download Page.
It will redirect you the actual download page for windows Mysql server.
Step 2:
It will show you Generally Available (GA) Releases. Where we can see two
different installers, one is a web community installer which comes as a little
file and another one is MySQL installer community. Click the Download
button on the second one (mysql-installer-community).
Step 3:
It will ask your MySQL credentials to download the .msi file. If you have
your credentials, you can log in or else if you wish to sign up now you can
click on the green coloured signup button.
If you are not interested in login or sign up for now, you can directly go
and click on No thanks, just start my download option. It will download
selected MySQL for you on your local machine.
Step 4:
Go to your downloads folder where you can see the
mysql-installer-community file, right click on that file and click Install
option.
Step 5:
This window configures the installer, in the middle, it may ask you for
permissions to change your computer settings or firewall confirmation, you
can accept and then it will take a few seconds to configure the installer.
Step 6:
Step 7:
Step 8:
Based on your Windows configuration, it may prompt you like “One or
more product requirements have not been satisfied”. You can just click on
YES.
Step 9:
Click on Execute.
Step 10:
Step 11:
Step 12:
This step allows you to configure the server. We can set the server in two
different modes. One is a standalone mode, and another one is cluster
mode. I don’t want to make it as a cluster because I am installing MySQL
for development purpose so that I am selecting Standalone MySQL server
and click on Next.
Step 14:
Step 15:
It is prompting you to select the authentication method, leave it as the
default recommended method and click on Next.
Step 16:
Here you can set your MySQL root user password. If you wish to create a
new user, you can click on Add User button under MySQL user accounts
section.
Step 17:
Upon clicking on Add User button, you will get the user details popup
which allows you to create a new user account. After creating the user click
on Next.
Step 18:
Step 19:
Step 20:
Upon execution, you can see the below green coloured ticks on every
configuration option and finally you will get Finish button.
Click on Finish you got your MySQL on your Windows 10 operating
system.
Testing:
MySQL comes along with some default databases. We can see the
databases by using show databases command.
MySQL Create Table Syntax Example
1. MySQL Create Table:
A simple create table example without applying any keys and constraints.
Designing an employee table with id as primary key and applying default
null constraint to middlenamee.
2.1 Creating a primary key with default values:
3. Verify:
Once you create a table, you can see it by using the show tables
command like below.