1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)http://webapptst.lasalle.edu/pma.

Slides:



Advertisements
Similar presentations
Database Relationships in Access As you recall, the data in a database is stored in tables. In a relational database like Access, you can have multiple.
Advertisements

How to Create a Local Collection
CC SQL Utilities.
Module 2 Navigation.     Homepage Homepage  Navigation pane that holds the Applications and Modules  Click the double down arrow on the right of.
Using the Georgia Online Assessment System(OAS) We will lead the nation in improving student achievement. Kathy Cox, State Superintendent of Schools.
Introduction to OBIEE:
Customizing the MOSS 2007 Search Results November 2007 Rafael Perez.
MEPO Training MEPO Database Access Training Presentation Copyright 2011 Rodger B. Fluke, MPA.
RETRIEVING DATA FROM FCC LICENSE DATABASE Steps for obtaining query results, and importing it into MS Excel Spreadsheet.
Access Lesson 2 Creating a Database
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
1 CA202 Spreadsheet Application Creating Dynamic Lists with PivotTables Lecture # 9.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
1 Introduction to OBIEE: Learning to Access, Navigate, and Find Data in the SWIFT Data Warehouse Lesson 8: Printing and Exporting an OBIEE Analysis This.
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
Access 2007 ® Use Databases How can Access help you to find and use information?
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Chapter 2 Querying a Database
ARCHIBUS Log On Instructions. Log Into ARCHIBUS Web Central Log In Screen 1.Open your Internet browser. 2.Enter the URL to view the ARCHIBUS Login Page.
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
Customer Portal – Customer User. You will receive an indicating that your Customer Portal registration is complete. A link to the Customer Portal,
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Working with a Database
Using the Georgia Online Assessment System(OAS) We will lead the nation in improving student achievement. Kathy Cox, State Superintendent of Schools.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Creating a Web Site to Gather Data and Conduct Research.
ERA Manager Training December 19, Propriety and Confidential. Do not distribute. 2 ERA Manager Overview In an effort to reduce the need for Providers,
PHP meets MySQL.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Systems Module Slide 2 – Overview and Navigation
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
Chapter 17 Creating a Database.
Access Manual 2 By Dhawala Kovuri Elham S.Khorasani Ismail Guneydas.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
CSC 240 (Blum)1 Introduction to Data Entry, Queries and Reports.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
PHP getting data from a MySQL database. Replacing XML as data source with MySQL Previously we obtained the data about the training session from an XML.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
MySQL Importing and creating a database. CSV (Comma Separated Values) file CSV = Comma Separated Values – they are simple text files containing data which.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Aliya Farheen October 29,2015.
Query Lab CSC 240 Blum1. Log on to PMA (PHPMyAdmin) and click on the Northwind database CSC 240 Blum2.
CPSC 203 Introduction to Computers T97 By Jie (Jeff) Gao.
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
Extracting Information from an Excel List The purpose of creating a database, or list in Excel, is to be able to manipulate the data elements in ways that.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Education And Training CTC IT DIVISION PivotLink User Training April 2010.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
MySQL and PHPMyAdmin 1. Make sure your MySQL service is running. If using XAMPP, open the control panel. If the button for MySQL says Start, click it.
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
Introduction to Web programming
Database application MySQL Database and PhpMyAdmin
Core LIMS Training: Advanced Administration
MySQL and MyPHPAdmin.
MySQL and PHPMyAdmin.
Test Information Distribution Engine (TIDE)
MODULE 7 Microsoft Access 2010
MySQL and PHPMyAdmin 1.
You will need to click the login button here
Presentation transcript:

1 MySQL and phpMyAdmin

2 Navigate to and log on (username: pmadmin)

3 The pma (phpMyAdmin) interface

4 Use the drop-down list to select the test database The mysql database is administrative, and we don’t have permissions for it. There are even more databases here that are not shown to this user. The (3) after test indicates that currently the test database contains three tables.

5 The test database in the pma interface We see in the first column above a list of the tables in the test database, in the second column one finds buttons allowing particular actions on those tables, in the third column one can see the number of records in the table. The remaining columns will be of less interest to us as we begin.

6 Table Actions 1.The browse button will show that all of the data in the table. (One can also update and delete the data here.) 2.The search button will set up a query based on that table. 3.The insert button allows one to add new records to the table. 4.The properties button allows one to the table’s structure (the metadata), i.e. what are the fields, their types, how long can they be, etc. 5.The empty button allows one to delete all of the records in the table. Be careful – it will give a little warning. (The table structure remains.) 6.The drop button allows one drop the table eliminating both data and metadata.

7 Browse: Browse shows the data in the ArtWork table The arrows show a few ways to get back to the test database page.

8 Search: Search gives one a Query-By-Example interface to search the ArtWork table

9 Insert: Insert provides a place for a user to enter data into the ArtWork table.

10 Properties: Properties displays the design/structure of the ArtWork table.

11 Allows one to write SQL queries for the test database.

12

13 Export ArtWork as CSV (comma-separated varaiables) While the name “comma separated variables” suggested the fields should be separated (terminated) by a comma, there will be a problem if the data itself contains commas. Try to choose a delimiter that would not appear in the data.

14 Export ArtWork as CSV (Cont.)

15 CSV (actually semicolon-separated) file in Notepad

16 Export ArtWork As XML

17 It does not open the XML file, but to save it you can right click, choose View Source which will show the XML file in Notepad and it can be saved from there.

18

19 The result of the search is a table which you then chose to browse. The search is accomplished by a SQL statement, which can be edited or turned into PHP code.

20 This view provides a Query-By-Example interface. It is like the interface we encountered when we clicked on the search button associated with a table. But this interface is better suited for doing queries that involve multiple table (joins).

21 Return to the test database main page, click on the search button next to the Artist table Accepting the default settings yields a simple query that obtains all of the fields of all of the records.

22 To choose only a few fields, hold down the control key while clicking on the field names in the list. One can “project” out only the fields one wants to see.

23 One can “select” out records that satisfy a particular condition, choose a comparison operator and enter a value.

24 The result page shows both the results of and the SQL for the query. Result of query SQL for query

We can click the Edit link and change aspects of the query.

26 When we start using PHP pages to interact with the database, we will need PHP variables that correspond to SQL queries. PMA provides this for us.

27 We can produce a quick report on the results of the query by clicking on the Print view link. The Export link leads to an interface like that for exporting a table.

28 Ascending and Descending We can put the artists in their birth order by selecting that field and choosing ascending (in this case).

29 Greater than operator Internally dates correspond to numbers (not text) and operators like “greater than or equal to” make sense. The difficulty is in knowing how the particular interface likes to format dates. Here we used a year-month-day format.

30 Return to the test database main page and then click on the Query button.

31 Use the drop-down list to select Artwork.* and Artist.* which means all of the fields from both tables. Check that they should be displayed.

32 Cartesian Product: The result lists every possible pair of artwork and artist regardless of whether the artwork was by the artist.

33 We create a “join” by selecting from the Cartesian product records in which the ArtistID (primary key) from Artist and ArtistID from ArtWork (foreign key) match.

34 Result of the join.

35 We can refine this query by choosing only the fields we want to see (projection).

36 Result of “join” with projection.

37 We can additional selection conditions.

38 Even though this is a valid query, there is a limited amount of data and the query produces zero records. (The interface could be a little nicer at letting you know.)

39 Pre-existing data file Suppose we already have a data file, and we do not want to enter the data using the Insert feature (which will be shown later) which allows us to enter data one record at a time. Then we can import data. The first step is to examine the data file and known its format.

40 A file containing data on members of the House of Representatives in a csv file CSV files can be opened in Excel, though they are just text files (and can be open in Notepad as well)

41 Create a table (give it a unique name).

42 Enter fields – use order seen in data file.

43 Table created

44 Scroll to bottom of page to find Insert link.

45 Click Browse button and find data file.

46 Select delimiter information. File was comma delimited. Fields were not “enclosed.”

47 Scroll down to submit button

48 Result page of import.

49 Click on table and on Browse button. Slightly problem with first record.

50 Select offending record and click Delete button.

51 Warning message about Delete, also shows SQL for delete.

52 Result of Delete