|
|
|
|
Course Number:
|
RS-MySQL |
 |
Course Title:
|
MySQL: Administering MySQL |
| Scheduled Dates | Register |
November 1 - 3, 2010
|
|
Know someone who
needs this course? |
 |
|
|
Length:
|
3 Day(s)
|
|
Description:
MySQL is the world's most popular open source client-server database. In this three-day, hands-on course, attendees learn the fundamentals of writing MySQL queries, administering the MySQL database, and writing applications that automate tasks within MySQL.
What you will learn:
- MySQL Training Objectives
- • To learn how to properly set up and configure MySQL
- • To master creating and querying databases in MySQL
- • To learn how to administer and secure a MySQL database
- • To discover how to write applications that integrate with MySQL databases
Audience:
Prerequisites:
- There are no formal prerequisites for this class.
Outline:
- MYSQL BASICS
- • Installing MySQL
- o Installing on Linux
- o Configuring Your System
- o Checking Your System Works
- o Setting the Root Password
- o Deleting Anonymous Accounts
- o Creating an Account for Basic Use
- • Quick Tour
- o MySQL Directory Structure
- o Overview of Executables
- o Overview of User Interfaces
- o Quick Introduction to the MySQL Monitor
- DESIGNING AND CREATING DATABASES WITH MYSQL
- • Database Design Crash Course
- o Database Concepts and Terminology
- o Database Design Principles
- o Normalization
- • Creating Databases, Tables, and Indexes
- o Case Sensitivity
- o Identifiers in MySQL
- o Creating a Database
- o Selecting a Database
- o Creating Tables
- o Column and Data Types in MySQL
- o Creating Indexes
- o Deleting Databases, Tables, and Indexes
- o Altering Existing Table Structures
- WRITING SQL QUERIES
- • Simple SELECTs
- o Introduction to the Northwind Database
- o Some Basics
- o SELECTing All Columns in All Rows
- o SELECTing Specific Columns
- o Sorting Records
- o The WHERE Clause and Operator Symbols
- o The WHERE Clause and Operator Words
- o Checking Multiple Conditions
- • Advanced SELECTs
- o Calculated Fields
- o Aggregate Functions and Grouping
- o Built-in Data Manipulation Functions
- • Subqueries, Joins, and Unions
- o Subqueries
- o Joins
- o Unions
- • Inserting, Updating and Deleting Records
- o Using INSERT
- o Using UPDATE
- o Using DELETE
- • Using MySQL Built-In Functions with SELECT
- o Operators
- o Control Flow Functions
- o String Functions
- o Numeric Functions
- o Date and Time Functions
- o Cast Functions
- o Other Functions
- o Functions for Use with GROUP BY Clauses
- MYSQL TABLE TYPES AND TRANSACTIONS
- • Understanding MySQL's Table Types
- o ISAM Tables
- o MyISAM Tables
- o InnoDB Tables
- o BerkeleyDB (BDB) Tables
- o MERGE Tables
- o HEAP Tables
- • Using Transactions with InnoDB Tables
- o What Are Transactions? Using Transactions in MySQL
- o The InnoDB Transaction Model
- ADMINISTERING MYSQL
- • Managing User Privileges
- o Creating User Accounts with GRANT and REVOKE
- o Privilege Levels
- o Evaluating Privileges
- o Using the REVOKE Statement
- o Understanding the Privilege Tables
- • Configuring MySQL
- o Setting MySQL Configuration Options
- o Setting InnoDB Configuration Options
- o Multi-Install Configuration Options
- o Configuring for Internationalization
- • Administering Your Database
- o Starting Up and Shutting Down the MySQL Server
- o Getting Information about the Server and Databases
- o Setting Variables
- o Killing Threads
- o Clearing Caches
- o Understanding the Log Files
- o mysqladmin Option
- • Backup and Disaster Recovery
- o Backing Up and Restoring Your Database
- o Testing Your Backup
- o Checking and Repairing Tables
- • Securing Your MySQL Installation
- o How the Privilege System Works in Practice
- o Securing Accounts
- o Securing Your Installation Files
- o Filtering User Data
- o Other Tips
- • Replicating Your Database
- o Replication Principles
- o Setting Up and Configuring for Replication
- o Advanced Topologies
- o The Future of MySQL Replication
- OPTIMIZING MySQL
- • Optimizing Your MySQL Server Configuration
- o Compiling and Linking for Speed
- o Tuning Server Parameters
- o Tuning Other Factors
- • Optimizing Your Database
- o What's Slow in MySQL Databases? Making the Right Design Choices
- o Indexing for Optimization
- o ANALYZE TABLE
- o Using OPTIMIZE TABLE
- • Optimizing Your Queries
- o Finding Slow Queries
- o Benchmarking Your Queries
- o Using the Slow Query Log
- o Using EXPLAIN to See How Queries Are Executed
- o Understanding MySQL's Built-In Query Optimization
- o Optimization Tips
- INTEGRATING APPLICATIONS WITH MYSQL
- • Integrating MySQL with Applications [Note: This section can be taught in Perl, PHP, Java, Python, C#, VB.NET, Visual Basic, or ColdFusion]
- o Loading the MySQL database driver
- o Connecting to the database [and handling connection errors]
- o Preparing a SQL statement
- o Executing a SQL statement [and handling SQL or database errors]
- o Displaying results
- o Obtaining and using database metadata
- o Using prepared statements to accelerate queries and defend against SQL injection attacks
- o Executing queries inside transactions [including how to subsequently commit or rollback each transaction]
- o If MySQL 5.0 is being used, we can also show how to invoke stored procedures (presuming the appropriate driver for the programming language being used supports stored procedure calls
|
|
|