8 6 MySQL Special Topics A Guide to MySQL.

Slides:



Advertisements
Similar presentations
Office Links - Sharing Data in Microsoft Office A Mixed Bag of Treasures Chester N. Barkan Registrar Long Island University, C.W.Post Campus.
Advertisements

Microsoft TM SharePoint Content Management SystemTutorial By Mazen Abdallah Student Assistant at CNS 2010.
Aqua Data Studio. Find the application We are using Aqua Data Studio v11.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Integrating Access with the Web and with Other Programs.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Access Tutorial 1 Creating a Database
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
MIS2502: Data Analytics MySQL and SQL Workbench David Schuff
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Tutorial 8 Managing and Securing a Database. Objectives Filter data in a table and a form Save a filter as a query and apply the saved query as a filter.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Building The Database Chapter 2
ASP.NET Programming with C# and SQL Server First Edition
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Creating a Web Site to Gather Data and Conduct Research.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Present :Arezoo Mollahasani. Step 1  Define your server connection Open MySQL WorkBench and click New Server Instance on the right of the window.
A Brief Documentation.  Provides basic information about connection, server, and client.
Unit 5 Microsoft SQL Server and MySQL. Key Concepts DBMS variations SQL Server features SQL Server Management Studio MySQL features Scripts Queries Database.
Microsoft Excel 2003 Illustrated Complete Data with Other Programs Exchanging.
MySQL Quick Guide. Start and End MySQL MySQL is installed as a service. To start MySQL: –Control Panel/Administrative Tools/Services/MySQL/ start MySQL.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
(Winter 2016) Instructor: Craig Duckett Lecture 09: Thursday, February 4 th MySQL Workbench, TEAM WORK TIME 1.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Visual Database Creation with MySQL Workbench 도시정보시스템 설계
® Microsoft Access 2010 Tutorial 8 Managing and Securing a Database.
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
XP Creating Web Pages with Microsoft Office
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
MicrosoftTM SharePoint Content Management SystemTutorial
DBMS Programs MS SQL Server & MySQL
Tutorial 1 Creating a Database
Using SQL*Plus.
Access Tutorial 1 Creating a Database
Tutorial 8 Managing and Securing a Database
Introduction to Web programming
mysql and mysql workbench
GO! with Microsoft Access 2016
Computers in the Medical Office
Access Creating a Database
1. Introduction to Visual Basic
Access Creating a Database
Microsoft FrontPage 2003 Illustrated Complete
Aqua Data Studio.
Access Tutorial 1 Creating a Database
Chapter 8 Working with Databases and MySQL
Case Study Creating a Database
Lesson 6: Protecting, Maintaining and Managing Databases
Using JDeveloper.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Access 2003
Microsoft Office Access 2003
MIS2502: Data Analytics MySQL and SQL Workbench
Lessons Vocabulary Access 2016.
Comparative Reporting & Analysis (CR&A)
Tutorial 7 – Integrating Access With the Web and With Other Programs
Access Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Tutorial 8 Sharing, Integrating, and Analyzing Data
Tutorial 12 Managing and Securing a Database
Presentation transcript:

8 6 MySQL Special Topics A Guide to MySQL

Objectives Import data into a MySQL table Export data from a MySQL table Understand issues that affect data performance Analyze tables A Guide to MySQL

Objectives (continued) Optimize queries Understand and use the MySQL Query Browser Understand and use the MySQL Administrator A Guide to MySQL

Importing and Exporting Data Importing: converting data to a MySQL database Exporting: converting the data in a MySQL database to a file format for use in another program A Guide to MySQL

Importing Data into a Database Text file: Contains unformatted data Comma-delimited Tab-delimited LOAD DATA INFILE: Name of file to import INTO TABLE (table) A Guide to MySQL

Importing Data into a Database (continued) A Guide to MySQL

Importing Data into a Database (continued) A Guide to MySQL

Importing Data into a Database (continued) A Guide to MySQL

Exporting Data from a Table SELECT INTO OUTFILE: SELECT (name of columns to export) INTO OUTFILE (name of text file) FROM (table) Text file: can open in any word-processing program or text editor A Guide to MySQL

Exporting Data from a Table (continued) A Guide to MySQL

Database Performance Issues Database performance: speed or rate with which the DBMS supplies information Optimizer: built-in program or routine A Guide to MySQL

Optimizing the Tables in a Database Efficient table designs: Smallest possible size for columns Eliminate unnecessary columns Eliminate unnecessary tables ANALYZE TABLE command: creates statistics for optimizer A Guide to MySQL

Optimizing the Tables in a Database (continued) A Guide to MySQL

Optimizing the Tables in a Database (continued) A Guide to MySQL

Optimizing the Tables in a Database (continued) A Guide to MySQL

Optimizing the Queries in a Database EXPLAIN command: Evaluates performance before query is executed Precedes normal SELECT statement Use output to determine if indexes needed A Guide to MySQL

Optimizing the Queries in a Database (continued) A Guide to MySQL

Optimizing the Queries in a Database (continued) PROCEDURE ANALYSE(): Analyzes query results Suggests optimal data type Place at the end of SELECT statement A Guide to MySQL

Optimizing the Queries in a Database (continued) A Guide to MySQL

Using the MySQL Query Browser Separate program: Create and execute queries using graphical user interface Download from http://dev.mysql.com/downloads/ A Guide to MySQL

Starting and Using the Query Browser Depends on operating environment Must enter: Server host information Username and password Default database (schema) A Guide to MySQL

Starting and Using the Query Browser (continued) A Guide to MySQL

Query Browser Window Query Area Result Area Object Browser: Schemata, Bookmarks, History Information Browser: Syntax, Functions, Params, Trx A Guide to MySQL

Starting and Using the Query Browser (continued) A Guide to MySQL

Getting Help in the Query Browser Help command on Help menu Displays window with list of topics Click topics to learn more A Guide to MySQL

Using the Database Browser Can set default database Select tables and columns for query Edit tables A Guide to MySQL

Using the Database Browser (continued) A Guide to MySQL

Using the Syntax Browser Easy way to learn syntax Four categories of commands: Data Manipulation Data Definition MySQL Utility Transactional and Locking A Guide to MySQL

Using the Syntax Browser (continued) A Guide to MySQL

Creating and Executing Queries Type query in Query Area Do not need semi-colon Execute by: Using Execute command on Query menu Pressing Ctrl + Enter Clicking Execute button on Query toolbar Commands are identical to those in Command Line Client window A Guide to MySQL

Creating and Executing Queries (continued) A Guide to MySQL

Exporting a Resultset Four file formats: CSV (comma-separated values) HTML XML Microsoft Excel Create and execute SELECT query Use Export Resultset command on File menu A Guide to MySQL

Using the Script Editor Can create and edit scripts Use Open Script command on File menu to open a script Can debug and execute script Use New Script Tab command on File menu to create a new script A Guide to MySQL

Using the MySQL Table Editor Can change the structure of tables Can add foreign keys Change name, data type, default value, or comment for a column A Guide to MySQL

Using the MySQL Table Editor (continued) A Guide to MySQL

Analyzing Query Performance A Guide to MySQL

Using the MySQL Administrator Tool for performing administrative operations Separate program Download from http://dev.mysql.com/downloads/ A Guide to MySQL

Starting the Administrator Similar to Query Browser Can also start from Tools menu in Query Browser Dialog box requests: Server host Username and password A Guide to MySQL

Viewing the Administrator Window Sidebar has 11 sections Configure and manage MySQL Server Manage user privileges Change startup options A Guide to MySQL

Viewing the Administrator Window (continued) Monitor database performance Backup and restore databases Replicate databases View catalogs, databases, and tables A Guide to MySQL

Viewing the Administrator Window (continued) A Guide to MySQL

Getting Help in the Administrator Help command on Help menu Displays window with list of topics Click topics to learn more A Guide to MySQL

Backing Up a Database Database can be damaged or destroyed Recovery: returns the database to its correct state Backup copy: periodically making a copy of the database A Guide to MySQL

Backing Up a Database (continued) A Guide to MySQL

Restoring a Database A Guide to MySQL

Maintaining a Database Use Catalogs section Create, edit, and maintain tables and indexes Optimize tables, check tables, and repair tables A Guide to MySQL

Summary Use LOAD DATA INFILE to import data Use SELECT INTO OUTFILE to export data Use ANALYZE TABLE, CHECK TABLE, OPTIMIZE TABLE to evaluate table performance Use REPAIR TABLE to repair a damaged or corrupted table A Guide to MySQL

Summary (continued) Use EXPLAIN and PROCEDURE ANALYSE() to evaluate queries MySQL Query Browser: Graphical user interface Create and execute queries MySQL Administrator: Perform administrative operations A Guide to MySQL