Database Administration with MySQL



Similar documents
DBA Tutorial Kai Voigt Senior MySQL Instructor Sun Microsystems Santa Clara, April 12, 2010

D61830GC30. MySQL for Developers. Summary. Introduction. Prerequisites. At Course completion After completing this course, students will be able to:

MySQL for Beginners Ed 3

MySQL Storage Engines

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases.

A Brief Introduction to MySQL

Part 3. MySQL DBA I Exam

Oracle Database 10g: Introduction to SQL

Oracle Database 12c: Introduction to SQL Ed 1.1

A table is a collection of related data entries and it consists of columns and rows.

Database Migration from MySQL to RDM Server

Tushar Joshi Turtle Networks Ltd

Oracle SQL. Course Summary. Duration. Objectives

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: Introduction to SQL

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Oracle Database: Introduction to SQL

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Oracle Database: SQL and PL/SQL Fundamentals NEW

Databases and SQL. Homework. Matthias Danner. June 11, Matthias Danner Databases and SQL June 11, / 16

DBMS / Business Intelligence, SQL Server

Instant SQL Programming

Oracle Database: SQL and PL/SQL Fundamentals

Partitioning under the hood in MySQL 5.5

Programming with SQL

SQL Server for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

Oracle Database: Introduction to SQL

Microsoft SQL Database Administrator Certification

ICAB4136B Use structured query language to create database structures and manipulate data

2874CD1EssentialSQL.qxd 6/25/01 3:06 PM Page 1 Essential SQL Copyright 2001 SYBEX, Inc., Alameda, CA

Information Systems SQL. Nikolaj Popov

Oracle Database 11g SQL

Oracle9i Database and MySQL Database Server are

Intro to Databases. ACM Webmonkeys 2011

Determining your storage engine usage

SQL - QUICK GUIDE. Allows users to access data in relational database management systems.

Introduction to Microsoft Jet SQL

How To Create A Table In Sql (Ahem)

DIPLOMA IN WEBDEVELOPMENT

SQL. Short introduction

3.GETTING STARTED WITH ORACLE8i

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

MS ACCESS DATABASE DATA TYPES

MySQL Command Syntax

sqlite driver manual

MySQL 5.0 vs. Microsoft SQL Server 2005

New Features in MySQL 5.0, 5.1, and Beyond

David Dye. Extract, Transform, Load

Administering a Microsoft SQL Server 2000 Database

MySQL Backup and Security. Best practices on how to run MySQL on Linux in a secure way Lenz Grimmer <lenz@mysql.com>

SCALABLE DATA SERVICES

Web Development using PHP (WD_PHP) Duration 1.5 months

Oracle Database 10g Express

Full Text Search in MySQL 5.1 New Features and HowTo

Administering a Microsoft SQL Server 2000 Database

Mailsteward Pro Table of Contents

SAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package Data Federation Administration Tool Guide

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Financial Data Access with SQL, Excel & VBA

S W I S S O R A C L E U S E R G R O U P. N e w s l e t t e r 3 / J u l i with MySQL 5.5. Spotlight on the SQL Tuning

A Comparison of Database Query Languages: SQL, SPARQL, CQL, DMX

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition

SQL Server. 1. What is RDBMS?

Lenz Grimmer

COMP 5138 Relational Database Management Systems. Week 5 : Basic SQL. Today s Agenda. Overview. Basic SQL Queries. Joins Queries

Using SQL Server Management Studio

Administering a Microsoft SQL Server 2000 Database

Oracle 10g PL/SQL Training

Monitoreo de Bases de Datos

SQL Server An Overview

Teradata Utilities Class Outline

database abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia

Percona Server features for OpenStack and Trove Ops

MySQL Backup IEDR

MOC 20461C: Querying Microsoft SQL Server. Course Overview

CSI 2132 Lab 3. Outline 09/02/2012. More on SQL. Destroying and Altering Relations. Exercise: DROP TABLE ALTER TABLE SELECT

Using MySQL for Big Data Advantage Integrate for Insight Sastry Vedantam

Database Query 1: SQL Basics

A basic create statement for a simple student table would look like the following.

DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.

Performance Tuning for the Teradata Database

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

P_Id LastName FirstName Address City 1 Kumari Mounitha VPura Bangalore 2 Kumar Pranav Yelhanka Bangalore 3 Gubbi Sharan Hebbal Tumkur

IT2304: Database Systems 1 (DBS 1)

High Availability Solutions for the MariaDB and MySQL Database

Relational Database: Additional Operations on Relations; SQL

Choosing a Data Model for Your Database

How To Compare The Two Database Engines

MYSQL DATABASE ACCESS WITH PHP

IT2305 Database Systems I (Compulsory)

Linas Virbalas Continuent, Inc.

Facebook Twitter YouTube Google Plus Website

Distributed Database Guide Version: 00.01

Structured Query Language (SQL)

Using Temporary Tables to Improve Performance for SQL Data Services

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL

New SQL Features in Firebird 3

SQL Basics for RPG Developers

Transcription:

Database Administration with MySQL Suitable For: Database administrators and system administrators who need to manage MySQL based services. Prerequisites: Practical knowledge of SQL Some knowledge of relational database administration issues Duration: (4 days) Instructor-led in-house training with practical exercises managing a sample SQL database Running the mysql client program The simplest query: select * Displaying query results Splitting up queries Selecting columns and rows from database tables Queries over multiple tables Combining where and column choice Examining a MySQL database Using SQL insert queries to add data with and without column names Rearranging columns with insert Inserting several rows at once Using the SQL update statement to change existing data in a table Using the SQL delete statement to remove data from a table Counting rows with the SQL count function Finding the largest and smallest items (SQL min and max functions) Finding averages (SQL avg function) Rows with missing data (null values) Finding rows with missing data (SQL is null and is not null tests) Sorting result rows (SQL order by clause, sorting in ascending or descending order with asc and desc) Using column-name aliases for long-winded column names in select Simple joins across multiple tables A introduction to database design Creating a database (SQL create database statement)

Creating a simple table (SQL create table statement) Text types (e.g., varchar(255)) Primary keys, identifying numbers integer not null auto_increment primary key Cross-table linking (matching foreign keys to primary keys) Changing the type of a a column (SQL alter table statement) A non-entity table Junction tables (auxillary tables to enable many to many joins) Database design Data types Text types (SQL varchar and char, MySQL specific mediumtext and longtext) Binary column types (MySQL specific mediumblob and longblob) Relationships between tables ( one to many and many to many ) Unique IDs (including MySQL specific extension auto_increment) Primary and foreign keys not null type qualifier Joining across many-to-many relationships Getting started with the MySQL server The MySQL suite of programs Obtaining MySQL Installing and configuring MySQL The MySQL data directory Default directories for binary installs How mysqld provides access to data MySQL database file types Starting up and shutting down the server on Unix and Windows MySQL logging and log files The error log The general query log The binary update log Privileges in MySQL Users and privileges MySQL users

Local and remote users The MySQL specific user() function Controlling access rights with SQL Using the SQL grant statement grant with wildcards Granting multiple privileges Setting passwords for users (SQL grant statement with identified by clause) Revoking privileges (SQL revoke statement) Granting the grant privilege itself show grants Grant tables flush privileges MySQL backup and recovery Backup principles Backup methods Backing up with mysqldump Transfers to another database or server Useful mysqldump options Backing up with mysqlhotcopy Backup by direct copying Recovering an entire database Recovering individual tables Database replication Live replication How slaves update themselves Setting up live replication Checking and repairing database tables Checking tables with isamchk and myisamchk Repairing tables with isamchk and myisamchk Checking tables with the check table statement Repairing tables with the repair table statement MySQL Development MySQL Development Subqueries in MySQL Character Sets and Collation Spatial Data and OpenGIS

Spatial Columns Spatial Functions Spatial Indexed MySQL Product Objectives Development stages Further MySQL queries Aliases for column names, table names and computed values Getting only distinct results (SQL select statement with distinct qualifier) Counting distinct rows Limiting the number of results (SQL limit statement) Limiting updates Specifying limit and start position Creating tables from query results (SQL create table statement with select clause) Creating temporary tables Replacing rows Copying rows into an existing table Replacing rows in a table from a query Arithmetic operators and functions String manipulation functions Storing dates and times Timestamp values Time related functions Increasing and decreasing dates and times Using + and - operators with dates Formatting dates and times for output Unix time values Advanced MySQL queries Aggregate queries Grouping rows together Using group by Multiple aggregate functions Grouping by multiple fields Using group by with other where Sorting group by queries Using group by with multiple tables More multi-table group by queries

Selecting groups by their aggregate value where and having where and having example Inner joins (SQL inner join syntax) Inner joins on matching field names (natural joins) Left joins (SQL left join syntax) Left joins with multiple matching rows Right joins Equivalence of left and right joins Full outer joins Components of a select query Subselects Left joins instead of subselects MySQL & subselects Using temporary tables for difficult queries create temporary table syntax Transactions Atomic operations Locking tables Table locking details Table locking with aliases Option files, Multiple Servers Multiple Server Rationale Multiple Server Basics Server Options Option File Format Sample Option File Using Localhost Making Multiple Servers Work Storage Enginges and Table Types Storage Engines MyISAM InnoDB MERGE Tables Berkley DB Tables HEAP (MEMORY) Tables

NBD Cluster Engine InnoDB Transaction Support Performing Transactions InnoDB Differences from MyISAM Optimising tables and queries Indexes in MySQL Primary keys and unique keys Creating primary keys Primary keys over multiple columns Creating tables with unique keys Non-unique indexes Adding an index while creating a table Adding indexes to existing tables Finding out how MySQL will execute a query Using explain to analyse queries Interpreting the output of explain Interpreting the join type explain when an index can be used Differences in the output of explain Using the Command-Line Tools Why use the Command Line? The MySQL Command-Line Tool MySQL Command-Line Options Replication of MySQL Databases How Slaves Work Setting Up the Master Server Setting Up Slaves Fine Tuning Replication Monitoring and Managing Replication Rotating Log Files MySQL Optimization and Tuning

What One Can and Should Optimize Optimizing Hardware for MySQL Optimizing Disks Optimizing OS Choosing API Optimizing the Application Portable Applications Increasing Speed Performance Figures MySQL Startup Options How MyQL Stores Data MySQL Buffer Variables How the MySQL Table Cache Works MySQL Extensions MySQL Indexes