Skip to:Content
|
Bottom
Cover image for Managing & using MySQL
Title:
Managing & using MySQL
Personal Author:
Edition:
2nd ed.
Publication Information:
Sebastopol, CA : O'Reilly, 2002
Physical Description:
xiii, 425p. : ill. 23cm.
ISBN:
9780596002114
Subject Term:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010240776 QA 76.73 .S67 R44 2002 Open Access Book Gift Book
Searching...

On Order

Summary

Summary

MySQL is a popular and robust open source database product that supports key subsets of SQL on both Linux and Unix systems. MySQL is free for nonprofit use and costs a small amount for commercial use. Unlike commercial databases, MySQL is affordable and easy to use. This book includes introductions to SQL and to relational database theory. If you plan to use MySQL to build web sites or other Linux or Unix applications, this book teaches you to do that, and it will remain useful as a reference once you understand the basics. Ample tutorial material and examples are included throughout.

This book has all you need to take full advantage of this powerful database management system. It takes you through the whole process from installation and configuration to programming interfaces and database administration. This second edition has a greatly enhanced administration chapter that includes information on administrative tools, server configuration, server startup and shutdown, log file management, database backup and restore, and database administration and repair. In addition, a new chapter on security describes data, server, and client-server security, while a chapter on extending MySQL provides an overview of MySQL internals and describes the use of MySQL user-defined functions.

If you know C/C++, Java, Perl, PHP, or Python, you can write programs to interact with your MySQL database. In addition, you can embed queries and updates directly in an HTML file so that a web page becomes its own interface to the database. Managing and Using MySQL includes chapters on the programming language interfaces, and it also includes a complete reference section with specific function calls for each language.

Also included in the reference section are references to the SQL language, and details of the MySQL system variables, programs, and utilities. New to the second edition is a reference to the internal MySQL tables, which will be of particular interest to those who want to work extensively with MySQL security.


Author Notes

Tim King has been working with computers since the early 1980s, when he programmed games on his Commodore 64 computer and founded a computer club in his high school. He earned a bachelor's degree in computer science from the University of Minnesota Institute of Technology in 1991. While there, he taught Unix and vi classes and was the leader of a rag-tag group of vi devotees called the "VI Zombies." Presently, Tim is a software consultant in San Francisco, CA, specializing in database and web technologies. His favorite activity is snowboarding, but he also enjoys photography and reading. You can reach him at kingt@verio.com

George Reese has taken an unusual path into business software development. After earning a B.A. in philosophy from Bates College in Lewiston, Maine, George went off to Hollywood where he worked on television shows such as "The People's Court" and ESPN's "Up Close". The L.A. riots convinced him to return to Maine where he finally became involved with software development and the Internet. George has since specialized in the development of Internet-oriented Java enterprise systems and the strategic role of technology in business processes. He is the author of Database Programming with JDBC and Java, 2nd Edition and the world's first JDBC driver, the mSQL-JDBC driver for mSQL. He currently lives in Minneapolis, Minnesota with his wife Monique and three cats, Misty, Gypsy, and Tia. He makes a living as the National Practice Director of Technology Strategy for digital@jwt in Minneapolis.


Table of Contents

Prefacep. ix
Part I. Introduction
1. MySQLp. 3
Relational Databasesp. 3
The History of MySQLp. 5
MySQL Designp. 7
MySQL Featuresp. 8
MySQL Applicationsp. 10
What You Getp. 11
2. Installationp. 13
Preparationp. 13
Unix Installationp. 14
Windows Installationp. 20
3. SQL According to MySQLp. 23
SQL Basicsp. 23
Database Creationp. 27
Table Managementp. 27
MySQL Data Typesp. 30
Indexingp. 34
Managing Datap. 36
Queriesp. 40
SQL Operatorsp. 46
Advanced Featuresp. 52
4. Database Administrationp. 64
Configurationp. 64
Server Startup and Shutdownp. 67
Loggingp. 70
Backupp. 73
Recoveryp. 75
Table Maintenance and Crash Recoveryp. 76
Part II. MySQL Administration
5. Performance Tuningp. 81
An Approach to Performance Tuningp. 81
Application Tuningp. 82
Database Server Tuningp. 93
Operating System/Hardware Tuningp. 94
6. Securityp. 95
Database Securityp. 95
System Securityp. 111
Application Securityp. 115
7. Database Designp. 119
Database Design Primerp. 119
Normalizationp. 122
A Logical Data-Modeling Methodologyp. 130
Physical Database Designp. 131
Part III. MySQL Programming
8. Database Applicationsp. 137
Architecturep. 137
Connections and Transactionsp. 141
Object/Relational Modelingp. 144
9. Perlp. 147
Introduction to DBIp. 147
DBI and CGIp. 156
A General Model for Maintainable Perl Programsp. 164
10. Pythonp. 183
DB-APIp. 183
Proprietary Operationsp. 187
Applied DB-APIp. 187
11. PHPp. 193
Introducing PHPp. 193
Installing PHPp. 199
Accessing the MySQL DBMS with PHPp. 202
Securing User Datap. 214
Managing Sessionsp. 215
Writing Data with PHPp. 217
Using the HTML [left angle bracket]form[right angle bracket] Environmentp. 220
Where to Find Out Morep. 223
12. CAPIp. 225
API Overviewp. 225
The C API in Practicep. 230
Advanced Issuesp. 234
13. Javap. 236
The JDBC APIp. 236
Simple Database Accessp. 247
Dynamic Database Accessp. 251
A Guest Book Servletp. 253
14. Extending MySQLp. 254
User-Defined Functionsp. 254
Alternative Character Setsp. 269
Part IV. MySQL Reference
15. SQL Syntax for MySQLp. 277
Basic Syntaxp. 277
SQL Commandsp. 280
16. MySQL Data Typesp. 310
Numeric Data Typesp. 312
String Data Typesp. 315
Date Data Typesp. 318
Complex Data Typesp. 320
17. Operators and Functionsp. 322
Operatorsp. 322
Functionsp. 324
18. MySQL PHP API Referencep. 338
Data Typesp. 338
Functionsp. 339
19. C Referencep. 363
Data typesp. 363
Functionsp. 366
20. The Python DB-APIp. 394
Module: MySQLdbp. 394
Indexp. 403
Go to:Top of Page