INFOMAN Lesson 8 SQL INTRODUCTION
INFOMAN Lesson 8 SQL INTRODUCTION
INFOMAN Lesson 8 SQL INTRODUCTION
SQL Introduction
Janice Pola D. Congzon
https://www.mysqltutorial.org/what-is-mysql/
Objectives
5
▪ MySQL is a database management system that allows you to manage relational
databases. It is open source software backed by Oracle. It means you can use
MySQL without paying a dime. Also, if you want, you can change its source
code to suit your needs.
▪ Even though MySQL is open source software, you can buy a commercial license
version from Oracle to get premium support services.
▪ MySQL is pretty easy to master in comparison with other database software
like Oracle Database, or Microsoft SQL Server.
▪ MySQL can run on various platforms UNIX, Linux, Windows, etc. You can install
it on a server or even in a desktop. Besides, MySQL is reliable, scalable, and
6
fast.
Download SQL
7
Install MySQL
8
Install MySQL Step 2 – Welcome Screen: A welcome screen provides several options.
Click Next
9
Install MySQL Step 3 – Download the latest MySQL products: MySQL installer checks and downloads
the latest MySQL products including MySQL server, MySQL Workbench, etc.
Click Execute
10
Install MySQL Step 4: Click the Next button to continue
11
Install MySQL Step 5 – Choosing a Setup Type: there are several setup types available. Choose
the Full option to install all MySQL products and features.
12
Install MySQL Step 6 – Checking Requirements
13
Install MySQL Step 7 – Installation Progress: MySQL Installer downloads all selected products. It will
take a while, depending on which products you selected and the speed of your internet connection.
14
Install MySQL Step 7 – Installation Progress: Complete Downloading. Click the Next button to
continue…
15
Install MySQL Step 8 – Configuration Overview. Click the Next button to configure
MySQL Database Server
16
Install MySQL Step 8.1 – MySQL Server Configuration: choose Config Type and MySQL port
(3006 by default) and click Next button to continue.
17
Install MySQL Step 8.1 – MySQL Server Configuration: choose a password for the root account. Please note the
password download and keep it securely if you are installing MySQL database server on a production server. If
you want to add a more MySQL user, you can do it in this step.
18
Install MySQL Step 8.1 – MySQL Server Configuration: choose Windows service details
including Windows Service Name and account type, then click Next button to continue.
19
Install MySQL Step 8.1 – MySQL Server Configuration – In Progress: MySQL Installer is
configuring MySQL database server. Wait until it is done and click the Next button to
continue.
20
Install MySQL Step 8.1 – MySQL Server Configuration – Done. Click the Next button
to continue.
21
Install MySQL Step 8.2 – Configuration Overview: MySQL Installer installs sample
databases and sample models.
22
Install MySQL Step 9 – Installation Completes: the installation completes. Click
the Finish button to close the installation wizard
23
If SQL is existing before,
▪ it will ask you to select products to upgrade. Choose the all in the choices
24
▪ Select Execute
25
26
27
▪ Applying configuration. Click Execute
28
▪ Applying configuration done. Click Finish
29
▪ If you want to upgrade products, click Yes and follow the succeeding steps
30
To start in MySQL Command Line Client
31
MySQL
▪ EnterCommand Line
your password you Client
were asked from the installation process
32
Connect to MySQL Using mysql command-line client
mysql is a command-line client program that allows you to interact with MySQL in the interactive and
non-interactive mode.
The mysql command-line client is typically located in the bin directory of the MySQL’s installation
folder.
33
34
Entering Queries
A query normally consists of an SQL statement followed by a semicolon.
When you issue a query, mysql sends it to the server for execution and displays
the results, then prints another mysql>prompt to indicate that it is ready for
another query.
Notice how the prompt changes from mysql>to - > after you
enter the first line of a multiple-line query. This is how mysql
indicates that it has not yet seen a complete statement and is
waiting for the rest.
If you decide you do not want to execute a query that
you are in the process of entering, cancel it by typing \c: