logo

MySQL Course

course overview

Click to View dates & book now

Overview

This MySQL for Developers training teaches developers how to develop console and web applications using MySQL with their choice of the PHP, Java, or Python programming languages. Expert Oracle University instructors will guide you through realistic hands-on activities to teach you how to use Connectors to access MySQL databases, query the database effectively, present data in different formats, and use MySQL support for “NoSQL”. In this course, you will be introduced to the MySQL Cloud Service.

Learn To:

  • Program with Connectors.
  • Write console and web applications.
  • Optimize query performance.
  • Write stored routines and triggers.
  • Use the InnoDB memcached plugin for NoSQL access to your data.
  • Store, access, and analyze geospatial data.
  • Gain an understanding of the MySQL Cloud Service.

Benefits to You

This course will teach you how to write applications that maximize your investment in MySQL. You will learn best practice techniques for writing programs that store and retrieve MySQL data and present it to users in a way that allows them to gain insight into that data.

Audience

MySQL Developers who have a basic understanding of a MySQL database and SQL commands as covered on the Introduction to MySQL course.

Skills Gained

  • Secure your connections to the MySQL server
  • Use prepared statements
  • Guard against SQL injection
  • Investigate and handle errors and warnings
  • Create database-driven web applications
  • Enable fast text search
  • Respond to data changes and events
  • Modify table data
  • Use temporal and numeric functions in expressions
  • Write queries that contain nested queries
  • Safeguard concurrent queries by using transactions
  • Find and fix poorly-performing queries
  • Use NoSQL and JSON document stores
  • Write stored programs
  • Create MySQL client programs using Connectors
  • Gain an understanding of the MySQL Cloud Service

Prerequisites

Required Prerequisites:

  • Knowledgable in using the mysql command-line client
  • Knowledgable in relational database concepts and MySQL data types
  • Knowledgable in executing basic DDL and DML queries using SQL
  • Knowledgable in Joining tables

Suggested Prerequisites:

  • Developing simple web applications using PHP, Java/JSTL, or
  • Basic HTML
  • Knowledge of JSON (javascript object notation)

Those delegates who are attending via either virtual or extended classroom will be required to provide either dual monitors or single monitor plus a tablet device.

Outline

Introduction to MySQL

  • MySQL overview
  • MySQL Enterprise Edition
  • MySQL on the Web
  • The MySQL community
  • What is MySQL Cloud Service
  • What it means to provision a MySQL Cloud Service instance
  • How an instance of MySQL Cloud Service differs from having an on-premises instance
  • How MySQL course content covers material that applies whether you run MySQL locally or in MySQL Cloud Service

Connectors and APIs

  • Introducing MySQL Connectors
  • PHP Connectors
  • Connector/J
  • Connector/Python
  • Embedding MySQL in an application
  • Integration with MySQL Fabric

Using Connectors

  • PHP, Java, and Python Connectors
  • Reusing connections
  • Dealing with special characters and null values
  • Storing and retrieving connection details
  • Creating secure connections to the MySQL server

Prepared Statements

  • Reasons for using prepared statements
  • User-defined variables
  • Preparing, executing, and deallocating prepared statements
  • Using prepared statements with Connectors

Handling Errors and Warnings

  • SQL modes
  • Interpreting errors and warnings
  • MySQL diagnostics
  • Error and exception handling with Connectors

Building Database-Driven Web Applications

  • Anatomy of a database-driven web application
  • Different methods of displaying query results
  • Web forms and processing requests
  • Using hyperlinks for navigation
  • Displaying query results across multiple pages
  • Dynamic sorting of query results

Tables and Views

  • Creating new tables from existing tables
  • Temporary tables
  • Using mysqldump
  • Working with views

Working with Strings

  • Overview of working with strings
  • String functions
  • Sorting and comparing strings
  • Matching string patterns with regular expressions
  • Using FULLTEXT search

Working with Numeric and Temporal Data

  • Numeric expressions
  • Temporal expressions
  • Interval arithmetic
  • Numeric functions
  • Temporal functions

Subqueries

  • Subquery: overview
  • Scalar subqueries
  • Row subqueries
  • Table subqueries
  • Correlated and non-correlated subqueries
  • Subqueries in data modification statements

Modifying Table Data

  • Using the INSERT statement
  • Retrieving the ID of the last-inserted record
  • Using the DELETE statement
  • Using the UPDATE and REPLACE statements
  • Using the TRUNCATE statement

Transactions

  • Overview of transactions
  • Transactional statements
  • Using transactions within programs
  • Consistency issues
  • Isolation levels
  • Locking

Query Optimization

  • Optimization strategies
  • The MySQL Query Optimizer
  • Indexing
  • Query analysis with the EXPLAIN statement
  • Rewriting queries
  • MySQL Enterprise Monitor

Stored Routines

  • Creating stored routines
  • Variables in stored routines
  • Parameters in stored routines
  • Managing stored routines in the database
  • Using flow control statements and constructs
  • Using cursors
  • Limitations of stored routines

Triggers and Scheduled Events

  • Triggers
  • Scheduled Events

Reporting

  • Aggregating data
  • Summary tables
  • Grouping data
  • Crosstab reports
  • Bar charts

NoSQL

  • NoSQL in MySQL
  • Memcached plugin for InnoDB
  • Memcached application development
  • The JSON native data type
  • JSON functions
  • Generated columns

Spatial Data

  • Spatial data support in MySQL
  • The MySQL spatial data types
  • Spatial data formats
  • Using spatial indexes for analysis
  • Useful spatial data functions

Conclusion

Talk to an expert

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. Its a cost effective option. One on one training can be delivered too, at reasonable rates.

Submit an enquiry from any page on this site, and let us know you are interested in the requirements box, or simply mention it when we contact you.

All $ prices are in USD unless it’s a NZ or AU date

SPVC = Self Paced Virtual Class

LVC = Live Virtual Class

Please Note: All courses are availaible as Live Virtual Classes

Trusted by over 1/2 million students in 15 countries

Our clients have included prestigious national organisations such as Oxford University Press, multi-national private corporations such as JP Morgan and HSBC, as well as public sector institutions such as the Department of Defence and the Department of Health.