SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building.

Slides:



Advertisements
Similar presentations
What is MySQL? MySQL is a relational database management system (A relational database stores data in separate tables rather than putting all the data.
Advertisements

Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Multiple Tiers in Action
CSC 2720 Building Web Applications Database and SQL.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
E-Commerce The technical side. LAMP Linux Linux Apache Apache MySQL MySQL PHP PHP All Open Source and free packages. Can be installed and run on most.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
Linux Operations and Administration
+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
Computing for Bioinformatics Introduction to databases What is a database? Database system components Data types DBMS architectures DBMS systems available.
INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Thursday, October 18, 2012 Session 7: PHP.
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
DB Libraries: An Alternative to DBMS By Matt Stegman November 22, 2005.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Simple Database.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building Assignment.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
PHP and MySQL CS How Web Site Architectures Work  User’s browser sends HTTP request.  The request may be a form where the action is to call PHP.
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
1 Welcome to CSC 301 Web Programming Charles Frank.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Enterprise PHP - Introduction Enterprise Client-Server Development with PHP Nic Shulver, FCES, Staffordshire University A fifteen credit module based on.
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
PowerBuilder Online Courses - by Prasad Bodepudi Database Painter Primary & Foreign Keys Extended Attributes PowerBuilder System Tables Database Profiles.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Linux Services Configuration
An Investigation into using a Document Management System Presented by: Bijal RanaSupervisor: John Ebden.
What is MySQL? MySQL is a relational database management system (RDBMS) based on SQL (Structured Query Language). First released in January, Many.
Database Connectivity and Server-Side Scripting Chapter 12.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
Class02 Introduction to web development concepts MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
A PRESENTATION ON (IN PHP,CSS,HTML)
Introduction to Dynamic Web Programming
Introduction to PHP FdSc Module 109 Server side scripting and
Relational database and SQL MySQL LAMP SQL queries
SQL Queries Relational database and SQL MySQL LAMP SQL queries
PHP / MySQL Introduction
BASIC PHP and MYSQL Edward S. Flores.
Chapter 8 Working with Databases and MySQL
Content of Presentation
IntroductionToPHP Static vs. Dynamic websites
Architecture of the web
Presentation transcript:

SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building

Relational Database and SQL A particular kind of DBMS that is very good at relating information stored in one table to another –> to pull data from those tables and to join info from related tables to produce answers to the questions that can’t be answered from individual tables alone. SQL (Structured Query Language) standard database language.

MySQL Relational database system Client/server architecture (101 simultaneous connections) SQL (table size for Linux = 4GB) Programming languages: C, C++, Java, Perl, PHP, Python, and Tcl ODBC (Microsoft) Platform independence, security, and speed

LAMP Linux (operating system) Apache (web server system)Apache MySQL (database system) Perl/PHP (programming language)PHP LAMP is an open source dream team LAMP is supported here by: athena

PHP Pure HTML  static web site PHP  enable you to build dynamic web site A server-side scripting language designed specifically for the web Conceived in 1994 by Rasmus Lerdorf as one-man project then adapted by many PHP (Hypertext Preprocessor)

SQL Queries When you use MySQL, you are using 2 programs(client/server): –Database server is a program located on the machine where your data are stored. It listens for client requests coming from network –Clients are programs that connect to the database server and issue queries to tell it what info they want

Benefits of Client/Server The server provides concurrency control so that two users cannot modify the same record at the same time You don’t have to be logged in on the machine where your database is located

A MySQL Tutorial An excellent MySQL Tutorial: MySQL by DuBois (Safari Tech Books Online ) Establishing and terminating connection Our database: samp_db

Applications Examples of MySQL UCSC Human Genome Project Working DraftUCSC Human Genome Project Working Draft LOCal: A Flexible Web-Based Microscope Reservation System – Univ. of Wisconsin, MadisonLOCal: A Flexible Web-Based Microscope Reservation System You are going to find out more fine examples ….

Database Building Basics Create a option file named.my.cnf in your home directory with content – this will save your time to login every time: [client] User = your-mysql-username Password = your-password –After creating the above file, chmod 600.my.cnf Familiar yourself with MySQL by using a tutorial and you are ready to go

Database Building Basics(cont.) Create a table in MySQL: Method 1 – create it in MySQL – easy to make mistakes Method 2 – create/update in your favorite editor (linux or widow) first and then run mysql in Batch mode. Example: Edit mysql command to create a table “student” and save it as a file, “create_student.sql”. At linux prompt type the follow will create a table student in database webdb. mysql webdb < create_student.sql

Database Design Issues Understanding the process and relations Objects  tables, attributes  columns, data types, relations  index, primary keys Our database: 1 table student

The First Normal Form Columns with similar content must be eliminated A table must be created for each group of associated data Each data must be identifiable by means of a primary key (unique index)

Second Normal Form Whenever the contents of columns repeat themselves, this means that the table must be divided into several sub- tables These table must be linked by foreign keys (cross reference)

Third Normal Form Columns that are not directly related to the primary key must be eliminated A good example of normalizing a database