My Account
View Cart
Home
Community
Books & Videos
Safari Books Online
Conferences
Training
School of Technology
About
Complete List
Bestsellers
New Releases
Rough Cuts
Upcoming Titles
Ebooks
By Publisher
By Series
Out of Print
Order Info
Search
Search Tips
Tell a friend
Learning MySQL
By
Seyed M.M. "Saied" Tahaghoghi
,
Hugh E. Williams
November 2006
Pages: 618
|
Table of Contents
|
Index
|
Sample Chapter
|
Colophon
Table of Contents
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
Return to
Learning MySQL