P2-S1 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.

Slides:



Advertisements
Similar presentations
L3-S1 Practical Solutions 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Advertisements

What is MySQL? MySQL is a relational database management system (A relational database stores data in separate tables rather than putting all the data.
Fall 2002 SJSU -- CmpE Enterprise & Application Frameworks Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San José.
ORACLE Lecture 1: Oracle 11g Introduction & Installation.
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L3-5c-S1 Object Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department,
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
L16-S1 Object Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
L19-S1 More on Class Diagrams 2003 SJSU -- CmpE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
 Fayad SJSU – CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L21-S1 Model-Based Arch SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L3-5d-S1 Class Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L26-S1 Interactions 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
Scite Scintilla integrated text editor. Click here.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
MC365 JDBC in Servlets. Today We Will Cover: DBVisualizer Using JDBC in servlets Using properties files.
L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
L8-S1 CRC Cards 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
 Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
1 Foundations of Software Design Lecture 27: Java Database Programming Marti Hearst Fall 2002.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L3-6b-S1 Sequence Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
CSCI 6962: Server-side Design and Programming
Session 5: Working with MySQL iNET Academy Open Source Web Development.
SQL HW1 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups.
STEPS FOR ODIN INSTALLATION
MySQL, Java, and JDBC CSE 3330 Southern Methodist University.
CSC 411/511: DBMS Design Dr. Nan WangCSC411_L12_JDBC_MySQL 1 MySQL and JDBC.
L1-S1Introduction 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Servlets Database Access. Agenda:  Setup Java Environment  Install Database  Install Database Drivers  Create Table and add records  Accessing a.
Department of Electrical Engineering, National Taiwan Ocean University NuMicro MCU Learning Board SDK Installation 1/29/2015 Richard.
L6-S1 UML Overview 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
JDBC Tutorial CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
Sybase Adaptive Server Anywhere 7
L8-2-S1 Misc Topics © M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of.
COMP 321 Week 4. Overview Normalization Entity-Relationship Diagrams SQL JDBC/JDBC Drivers hsqldb Lab 4-1 Introduction.
L6-S1 MLPQ 2003 SJSU -- CmpE-- M.E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
JDBC Java and Databases. SWC – JDBC JDBC – Java DataBase Connectivity An API (i.e. a set of classes and methods), for working with databases in.
Getting Started with SAP Athens State U N I V E R S I T Y Lisa Rich, PhD Professor of Information Systems.
Settings MySQL Database and JDBC configuration Instructor: Sergey Goldman.
L1-S1 Infinite R-DB 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
E Copyright © 2006, Oracle. All rights reserved. Using SQL Developer.
PHP and SQL Server: Connection IST 210: Organization of Data IST2101.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
2nd year Computer Science & Engineer
Fundamental of Databases
Advanced Object-Oriented Analysis & Design
Database Design Dr. M.E. Fayad, Professor
Software Engineering Management
IS 220 Databases Fundamentals
Aqua Data Studio.
Component-Based & Software Reuse
Software System Engineering
Object-Oriented Analysis & Design
Software Engineering Management
MSIS 655 Advanced Business Applications Programming
Software System Engineering
Database Design Dr. M.E. Fayad, Professor
Database Design Dr. M.E. Fayad, Professor
Software System Engineering
Presentation transcript:

P2-S1 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José State University One Washington Square San José, CA

P2-S2 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Project 2: The MySQL Relational Database

P2-S3 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Lesson Objectives Understand Project 2 Learn about: î Project Deliverables î Setting up MySQL î Java & JDBC î Sample Code

P2-S4 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Project 2 You will use your Schema From Project One to build a database system. You may adjust it if necessary or desired. Come up with 10 creative and useful queries in SQL. You will use MySQL database, Java, and JDBC. You will create two separate programs 4

P2-S5 MySQL 2003 SJSU -- CmpE-- M.E. Fayad 2 Programs First Program Will: –Connect To the MySQL database –Create a Project 2 Database –Create all tables with proper attributes and attribute types –Insert at least 10 data entries for each table.

P2-S6 MySQL 2003 SJSU -- CmpE-- M.E. Fayad 2 Programs Second program will –Connect to the database –Execute at least 10 queries again your database –Print the results in a text or html file, or a simple GUI. –The results must be organized and easy to read. State the SQL query and show the result.

P2-S7 MySQL 2003 SJSU -- CmpE-- M.E. Fayad MySQL Setup Go to Download 1. MySQL 4.0 Production Release Database 2. MySQL Control Center GUI Client 3. MySQL Connector/J 3.0 Production Release API

P2-S8 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Database Setup Unzip the archive mysql win2.zip Run setup.exe Click next->next->… etc.. Accept all defaults Reboot your System to start the database service. Run winmysqladmin.exe located in C:\mysql\bin by double clicking the icon. Enter a user name and password.

P2-S9 MySQL 2003 SJSU -- CmpE-- M.E. Fayad GUI Client Setup Unzip the archive mysqlcc win32.zip Run Setup.exe Click next->next->next->… etc… Done

P2-S10 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Connecter/J Setup This package contains the JDBC driver and provides the API used to interface with the database using java. Unzip the Archive –mysql-connector-java stable.zip Find the “com” folder and place this folder in your java class path Test by trying to compile the sample code

P2-S11 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Sample Code Two Java files available on the course’s website: –Project2.java This file contains sample code to connect to the database, create a project2 database, add tables to this database, and add a one tuple of data. –Project2Query.java Connects to the database, executes on query, and displays the results to the command line.

P2-S12 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Questions?