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
Preface | p. ix |
Part I. Introduction | |
1. MySQL | p. 3 |
Relational Databases | p. 3 |
The History of MySQL | p. 5 |
MySQL Design | p. 7 |
MySQL Features | p. 8 |
MySQL Applications | p. 10 |
What You Get | p. 11 |
2. Installation | p. 13 |
Preparation | p. 13 |
Unix Installation | p. 14 |
Windows Installation | p. 20 |
3. SQL According to MySQL | p. 23 |
SQL Basics | p. 23 |
Database Creation | p. 27 |
Table Management | p. 27 |
MySQL Data Types | p. 30 |
Indexing | p. 34 |
Managing Data | p. 36 |
Queries | p. 40 |
SQL Operators | p. 46 |
Advanced Features | p. 52 |
4. Database Administration | p. 64 |
Configuration | p. 64 |
Server Startup and Shutdown | p. 67 |
Logging | p. 70 |
Backup | p. 73 |
Recovery | p. 75 |
Table Maintenance and Crash Recovery | p. 76 |
Part II. MySQL Administration | |
5. Performance Tuning | p. 81 |
An Approach to Performance Tuning | p. 81 |
Application Tuning | p. 82 |
Database Server Tuning | p. 93 |
Operating System/Hardware Tuning | p. 94 |
6. Security | p. 95 |
Database Security | p. 95 |
System Security | p. 111 |
Application Security | p. 115 |
7. Database Design | p. 119 |
Database Design Primer | p. 119 |
Normalization | p. 122 |
A Logical Data-Modeling Methodology | p. 130 |
Physical Database Design | p. 131 |
Part III. MySQL Programming | |
8. Database Applications | p. 137 |
Architecture | p. 137 |
Connections and Transactions | p. 141 |
Object/Relational Modeling | p. 144 |
9. Perl | p. 147 |
Introduction to DBI | p. 147 |
DBI and CGI | p. 156 |
A General Model for Maintainable Perl Programs | p. 164 |
10. Python | p. 183 |
DB-API | p. 183 |
Proprietary Operations | p. 187 |
Applied DB-API | p. 187 |
11. PHP | p. 193 |
Introducing PHP | p. 193 |
Installing PHP | p. 199 |
Accessing the MySQL DBMS with PHP | p. 202 |
Securing User Data | p. 214 |
Managing Sessions | p. 215 |
Writing Data with PHP | p. 217 |
Using the HTML [left angle bracket]form[right angle bracket] Environment | p. 220 |
Where to Find Out More | p. 223 |
12. CAPI | p. 225 |
API Overview | p. 225 |
The C API in Practice | p. 230 |
Advanced Issues | p. 234 |
13. Java | p. 236 |
The JDBC API | p. 236 |
Simple Database Access | p. 247 |
Dynamic Database Access | p. 251 |
A Guest Book Servlet | p. 253 |
14. Extending MySQL | p. 254 |
User-Defined Functions | p. 254 |
Alternative Character Sets | p. 269 |
Part IV. MySQL Reference | |
15. SQL Syntax for MySQL | p. 277 |
Basic Syntax | p. 277 |
SQL Commands | p. 280 |
16. MySQL Data Types | p. 310 |
Numeric Data Types | p. 312 |
String Data Types | p. 315 |
Date Data Types | p. 318 |
Complex Data Types | p. 320 |
17. Operators and Functions | p. 322 |
Operators | p. 322 |
Functions | p. 324 |
18. MySQL PHP API Reference | p. 338 |
Data Types | p. 338 |
Functions | p. 339 |
19. C Reference | p. 363 |
Data types | p. 363 |
Functions | p. 366 |
20. The Python DB-API | p. 394 |
Module: MySQLdb | p. 394 |
Index | p. 403 |