| link |
|---|
This guide explains how to set up and configure MySQL for the project.
Before proceeding, ensure you have the following installed on your system:
- MySQL Server (Version
8.xor higher) - MySQL Workbench or any database client
- Basic knowledge of SQL and MySQL commands
cd Documentsgit clone https://github.com/vipultyagi07/MySQL_PROJECT_online_retail_app.gitNow you have the project in your local(computer) folder
mysql --versionEnsure that mysql installed on your machine. You can take reference from here How to install MySQL Server and Workbench.
Ensure that mysql installed on your machine. You can take reference from here How to install MySQL Server and Workbench.
connect to the root user
There are two-way to set up the project
-
follow
Step1_createandStep2_InsertQueryOR -
follow
StepX
1.1 Open 1_create_DB.sql and run the script to create the database
1.2 Open 2_create_table.sql and run the script to create the tables
1.3 now run the insert query number wise
Now you are all set to do the questions
create the database manually
DROP DATABASE IF EXISTS online_retail_app;create database online_retail_app;Use import functionality
save this file order_online_app_import.sql to some folder and then follow this tutorial
How to import the whole tables with data
mysql -u root -pReplace root with your MySQL username if it's different, then enter your MySQL password when prompted.
show databases;use online_retail_app;show tables;SELECT * FROM online_retail_app.Users limit 10;exit;