Adobe® Digital Editions software.This eBook requires the free
Before downloading this DRM-encrypted PDF, be sure to:
Also available in other formats.
Register your product to gain access to bonus material or receive a coupon.
MySQL is the most widely installed open-source database. Approximately 3.5 million MySQL servers are in use and more than 45% of databases used on Linux worldwide are MySQL databases.
Its latest version, MySQL 4.1 closes the gap between MySQL and other, more sophisticated databases. Version 4.1 permits the use of MySQL as an embedded database, which means it can be compiled into another application and used in a range of devices.
The second edition of Sams Teach Yourself MySQL in 21 Days has been completely rewritten by a new author. The book enables a reader to create powerful databases using MySQL. He willnot only learn how to integrate MySQL into a database-driven Web site, but also how to embed MySQL into other compiled applications.
(NOTE: Each chapter concludes with a Summary, Q&A, and Workshop.)
Day 1. Introduction to MySQL.
What Is MySQL? The Commercial View of MySQL.
Installation Overview. Installing on Linux. Installing on OS X. Installing on Windows.
The Need for Business Analysis. Analyzing Business Needs. Relationship Modeling. Normalization.
The Essential Programs and Files of MySQL. MySQL Users. Installing ODBC.
Overview of Data and Column Types. Numeric Column Types. String Column Types. Date and Time.
Using the mysql Client Program. Creating, Dropping, and Selecting a Database. Manipulating Tables.
Inserting Data Using INSERT. Inserting and Replacing Data Using REPLACE. Performing Updates. Importing Data.
The Basics of SELECT Queries. More Advanced Uses of SELECT. Deleting Rows with DELETE.
Joining Tables. Indexes. Managing Indexes in MySQL.
How to Use This Lesson. Operators. Logical and Conditional Functions. String Functions. Date and Time Functions. Encryption, Encoding, and Checksum Functions.
What Is PHP? A Quick Guide to PHP. The PHP API for MySQL.
What Is Perl? The Perl Interface to MySQL. Installing DBI and DBD on Linux. DBI Methods. Connecting to MySQL with the DBI. Basics of Database Queries. Handling the Resultset. Queries That Return No Resultset. Handling Query Errors. When to Use Perl.
C and MySQL. When to Use C, and When Not To. Datatypes. Compiling and Linking. Connecting to Your Database. Disconnecting from a Database. Handling Errors. A Simple Connection Script. Running Queries That Return a Resultset. A Simple Query Program. Handling Resultsets. Queries That Return No Resultset.
The MySQL User Privilege System. Managing User Privileges with GRANT and REVOKE. Keeping a MySQL Installation Secure. Making Secure Connections to MySQL.
Managing a Database with mysqladmin. Setting Variables for MySQL. Other Administration Tools. The MySQL Data Directory. Backing Up. Creating Fast, Compressed Tables with myisampack.
Checking and Fixing a Corrupted Database. How to Use myisamchk. Checking, Repairing, and Optimizing Using SQL Commands.
What Is Table Locking? How MySQL Uses Table Locks. Cooperative Locks. Transaction-Safe Table Types.
Why Optimize Performance? What Do We Mean by Performance Anyway? Factors Affecting Performance. Commands for Optimization.
What Is Replication? Replication in MySQL. Setting Up a Master-Slave Replication System. Customizing Replication. SQL Commands for Replication. Replication Topologies.
What Is an Embedded System? How to Create an Embedded System. Building Embedded Server Programs.
Why Create a New Function? An Overview of Installing UDFs. Hands-on: Creating a Simple Function. Writing Your Own UDFs.
Numeric Types. String Types. Date and Time Types.