Database
Database Design
using MySQL
Ex.:
http://www.tutorialspoint.com/mysql/
http://dev.mysql.com
http://www.mysql.com
http://www.php.net/manual/en/
www.mysql.com
worlds most popular Open Source
database
if you need MySQL for non-commercial
use, you can download a copy free
Database
MySQL can control several databases at
once
Tables
database is a container to store your
tables in
table is a collection of data of a similar
type
each table in a database has a unique
name within that database, and that is how
we refer to the table
Columns
any table will have a set of attributes, that is, a
list of types of items that each table will store
we will refer to this attribute as a column
you would have called this a field
Relations
database allowed to set up more than a
table.
database systems are classified as
relational, allowing you to relate data in
tables to data in other tables
in relational database theory, tables are
called relations (columns are called
attributes)
DataBase course notes 10
10
Rows
row (or record) are all different ways of
referring to a line of data within a table
tuple is the relational theory term for row,
and record is the earlier form of databases
term
11
Client-server Systems
12
Client-server Systems
data is stored on the server
when client needs to access data, it makes
request to server
on receiving request, server takes necessary
action, and sends its response back to client
response could be data, request for more details, or
error message
13
Client-server Systems
client and server do not necessarily have
to be on different machines
you can set up MySQL server software and
client software on the same machine
14
15
16
17
18
19
MySQL
lighter
free license
release 5
MS SQL Server
more enterprise features
free license
for Computer Science
personnel
20
Oracle Database:
http://www.oracle.com/technetwork/database/enterpriseedition/downloads/index.html
21
22
Mimer
free downloads available for developers
unix, windows, mac osx, symbian ...
PostgreSQL
free
often bundled with linux, windows
23
Installing MySQL
24
25
phpMyAdmin
free software tool written in PHP intended to
handle administration of MySQL over internet
included in most WAMP distributions
DataBase course notes 10
26
27
28
29
30
31
32
SQL commands
connect database
exit
connect with Graphical Tool
33