Exp 1
Exp 1
RollNo 2300330109009
EXPERIMENT -1
AIM -Introduction to database, installation of MYSQL and Creation of database.
DATABASE - A database is an organized collection of data stored in a computer system and usually
controlled by a database management system (DBMS). The data in common databases is modeled in
tables, making querying and processing efficient. Structured query language (SQL) is commonly used for
data querying and writing.
The Database is an essential part of our life. We encounter several activities that involve our interaction
with databases, for example in the bank, in the railway station, in school, in a grocery store, etc. These are
the instances where we need to store a large amount of data in one place and fetch these data easily.
INSTALLATION OF MYSQL
Now, Let’s break down MySQL software downloading steps for a better understanding and see
install MySQL on Windows 10 step by step. Step 1: Visit the Official MySQL Website
Open your preferred web browser and navigate to the official MySQL website. Now, Simple click
on first download button.
Step 2: Go to the Downloads Section On the MySQL homepage, Click on the ”No thanks, just start my
download” link to proceed MYSQL downloading.
After MySQL downloading MySQL.exe file, go to your Downloads folder, find the file, and doubleclick
to run the installer.
The installer will instruct you to choose the setup type. For most users, the “Developer Default” is
suitable. Click “Next” to proceed.
Now that you’re in the download section, click “Execute” to start downloading the components you
selected. Wait a few minutes until all items show tick marks, indicating completion, before moving
forward
Now the downloaded components will be installed. Click “Execute” to start the installation process.
MySQL will be installed on your Windows system. Then click Next to proceed
Proceed to “Product Configuration” > “Type and Networking” > “Authentication Method” Pages by
clicking the “Next” button.
Create a password for the MySQL root user. Ensure it’ s strong and memorable. Click “Next” to proceed.
Once the installation is complete, click “Finish.” Congratulations! MySQL is now installed on your
Windows system.
To ensure a successful installation of MySQL, open the MySQL Command Line Client or MySQL
Workbench, both available in your Start Menu. Log in using the root user credentials you set during
installation.
CREATION OF DATABASE
To create Database the CREATE DATABASE statement is used to create a new SQL database.
SYNTAX :
CREATE DATABASE database_name;
In this syntax:
• First, specify the name of the database after the CREATE DATABASE keywords. The
database name must be unique within a MySQL server instance. If you attempt to create a
database with an existing name, MySQL will issue an error.
• Second, use the IF NOT EXISTS option to create a database if it doesn’t exist
conditionally.
• Third, specify the character set and collation for the new database. If you skip the
CHARACTER SET and COLLATE clauses, MySQL will use the default character set and
collation for the new database.