-
Introduction
-
Chapter 1 Introduction
- Why Is MySQL so Popular?
- Elements of MySQL and Its Environment
- MySQL Software Covered in This Book
- The Book’s Web Site
-
Chapter 2 Installing MySQL
- Installation Choices and Platforms
- Using the Command-Line Interface
- Using a Text Editor
- Following the Instructions in This Book
- Downloading and Verifying Files from the MySQL AB Web Site
- Installing Under Linux
- Installing Under Windows
- Installing Under Mac OS X
- Using a MySQL Installation Provided by an ISP
- Upgrading an Existing MySQL Server
- Configuring Access to the MySQL Server
- What If Things Don’t Work?
- The Contents of the MySQL Directory
- Configuring and Controlling the Apache Web Server
- Setting up Perl
- Resources
- Exercises
-
Chapter 3 Using the MySQL Monitor
- Starting the Monitor
- Style, Case, and Semicolons
- The Monitor Help
- Running the Monitor in Batch Mode
- Loading the Sample Databases
- MySQL Monitor Program Options
- Graphical Clients
- Exercises
-
-
Using MySQL
-
Chapter 4 Modeling and Designing Databases
- How Not to Develop a Database
- The Database Design Process
- The Entity Relationship Model
- Entity Relationship Modeling Examples
- Using the Entity Relationship Model
- Using Tools for Database Design
- Resources
- Exercises
-
Chapter 5 Basic SQL
- Using the Music Database
- The SELECT Statement and Basic Querying Techniques
- The INSERT Statement
- The DELETE Statement
- The UPDATE Statement
- Exploring Databases and Tables with SHOW and mysqlshow
- Exercises
-
Chapter 6 Working with Database Structures
- Creating and Using Databases
- Creating Tables
- The Sample Music Database
- Altering Structures
- Deleting Structures
- Exercises
-
Chapter 7 Advanced Querying
- Aliases
- Aggregating Data
- Advanced Joins
- Nested Queries
- User Variables
- Transactions and Locking
- Table Types
- Exercises
-
Chapter 8 Doing More with MySQL
- Inserting Data Using Queries
- Loading Data from Comma-Delimited Files
- Writing Data into Comma-Delimited Files
- Creating Tables with Queries
- Updates and Deletes with Multiple Tables
- Replacing Data
- The EXPLAIN Statement
- Exercises
-
Chapter 9 Managing Users and Privileges
- Understanding Users and Privileges
- Creating and Using New Users
- Privileges
- The GRANT OPTION Privilege
- How Privileges Interact
- Users and Hosts
- Checking Privileges
- Revoking Privileges
- Removing Users
- Understanding and Changing Passwords
- The Default Users
- Devising a User Security Policy
- Managing Privileges with SQL
- Privileges and Performance
- Resetting Forgotten MySQL Passwords
- Exercises
-
-
Advanced Topics
-
Chapter 10 Backups and Recovery
- Dumping a Database as SQL Statements
- Loading Data from an SQL Dump File
- mysqlhotcopy
- Scheduling Backups
- The Binary Log
- Checking and Repairing Corrupted Tables
- Re-Creating Damaged Grant Tables
- Resources
- Exercises
-
Chapter 11 Using an Options File
- Configuring Options for the MySQL Monitor
- Structure of the Options File
- Scope of Options
- Search Order for Options Files
- Determining the Options in Effect
- Exercises
-
Chapter 12 Configuring and Tuning the Server
- The MySQL Server Daemon
- Server Variables
- Checking Server Settings
- Other Things to Consider
- Resources
- Exercises
-
-
Web Database Applications with PHP
-
Chapter 13 Web Database Applications
- Building a Web Database Application
- The Apache Web Server
- Introducing PHP
- Using a PHP-Enabled Web Hosting Site
- Resources
- Exercises
-
Chapter 14 PHP
- Language Basics
- Accessing MySQL Using PHP
- Modularizing Code
- Processing and Using User Data
- The PHP Predefined Superglobal Variables
- Untainting User Data
- Sessions
- The Reload Problem
- Using PHP for Command-Line Scripts
- Resources
- Exercises
-
Chapter 15 A PHP Application: The Wedding Gift Registry
- Designing and Creating the Wedding Database
- The Login Form
- Passing a Message to a Script
- Logging Users In and Out
- The db.php Include File
- Editing the List of Gifts
- Loading Sample Gifts
- Listing Gifts for Selection
- Selecting and Deselecting Gifts
- Resources
- Exercises
-
-
Interacting with MySQL Using Perl
-
Chapter 16 Perl
- Writing Your First Perl Program
- Scripting With Perl
- Resources
- Exercises
-
Chapter 17 Using Perl with MySQL
- Connecting to the MySQL Server and Database
- Handling Errors When Interacting with the Database
- Using Queries That Return Answer Sets
- Using Queries That Don’t Return Answer Sets
- Binding Queries and Variables
- Importing and Exporting Data
- Handling NULL Values
- Resources
- Exercises
-
Chapter 18 Serving Perl Pages to the Web
- The Perl CGI Module
- Processing User Input
- A Note on mod_perl
- Perl Security
- Resources
- Exercises
-
-
Appendix
-
Appendix The Wedding Registry Code
-
-
Colophon
- Title:
- Learning MySQL
- By:
- Seyed M.M. Tahaghoghi, Hugh E. Williams
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- November 2006
- Ebook Release:
- June 2009
- Pages:
- 624
- Print ISBN:
- 978-0-596-00864-2
- | ISBN 10:
- 0-596-00864-3
- Ebook ISBN:
- 978-0-596-10526-6
- | ISBN 10:
- 0-596-10526-6
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects.
The type of butterfly on the cover of Learning MySQL is the blue spotted crow (euploea midamus). One of more than 15,000 species of butterfly, this member of the brush-footed family Nymphalidae (which also is home to the Monarch) is native to the Orient and can be found in a region that spreads from Afghanistan to Australia. As its name suggests, the crow is distinguished by its blue tint, as well as a series of white spots that line the hind edge of its large wings.
In the course of their lives, butterflies go through four development stages: egg, larva, pupa, and adult. Butterfly eggs, ovate or spherical in shape, are attached to leaves by a powerful, quickly hardening glue until they hatch. In the larval stage, butterflies are commonly referred to as caterpillars, and their bodies are divided into many small segments, each possessing up to four pairs of legs. Caterpillars have insatiable appetites, feeding practically nonstop on plant matter and molting approximately four or five times before becoming pupae. At this third phase, the caterpillar becomes a chrysalis, typically cleaving to the underside of a leaf. The chrysalis then consumes foodstuffs that enable it to develop its wing structures and make the metamorphosis into an adult butterfly. In this final stage of development, the butterfly is known as an imago, a four-winged creature with six legs. Imagos subsist mainly on flower nectar; some supplement their diets with nutrients from sap, pollen, rotten fruit, or dung.
In Japanese culture, butterflies are somewhat paradoxically mythologized as both harbingers of prosperity and impending doom. One superstition stipulates that a single butterfly flying into one's bedroom presages the arrival of one's dearest love, while an encounter with a swarm of butterflies is thought to be a precursor to ominous events.
The cover image is from Cassell's Natural History. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed.
