Introduction 1 Part I: General MySQL Use Chapter 1: Getting Started with MySQL 13Chapter 2: Using SQL to Manage Data 101Chapter 3: Data Types 201Chapter 4: Stored Programs 289Chapter 5: Query Optimization 303 Part II: Using MySQL Programming Interfaces Chapter 6: Introduction to MySQL Programming 341 Chapter 7: Writing MySQL Programs Using C 359 Chapter 8: Writing MySQL Programs Using Perl DBI 435 Chapter 9: Writing MySQL Programs Using PHP 527 Part III: MySQL AdministrationChapter 10: Introduction to MySQL Administration 579Chapter 11: The MySQL Data Directory 585 Chapter 12: General MySQL Administration 609 Chapter 13: Access Control and Security 699Chapter 14: Database Maintenance, Backups, and Replication 737 Part IV: Appendixes Appendix A: Obtaining and Installing Software 777Appendix B: Data Type Reference 797Appendix C: Operator and Function Reference 813Appendix D: System, Status, and User Variable Reference 889Appendix E: SQL Syntax Reference 937Appendix F: MySQL Program Reference 1037 Note:Appendixes G, H, and I are located online and are accessible either by registering this book at informit.com/register or by visiting www.kitebird.com/mysql-book. Appendix G: C API Reference 1121Appendix H: Perl DBI API Reference 1177Appendix I: PHP API Reference 1207 Index 1225
The Definitive Guide to Using, Programming, and Administering MySQL 5.0 and 5.1 MySQL is an open source relational database management system that has experienced a phenomenal growth in popularity and use. Known for its speed and ease of use, MySQL has proven itself to be particularly well-suited for developing database-backed websites and applications. In MySQL, Paul DuBois provides a comprehensive guide to using and administering MySQL effectively and productively. He describes everything from the basics of getting information into a database and formulating queries, to using MySQL with PHP or Perl to generate dynamic web pages, to administering MySQL servers. MySQL has been completely updated to cover MySQL 5.0 and 5.1 and has been thoroughly reviewed for completeness, clarity, and technical accuracy by some of the leading developers in the MySQL community. Acknowledgments IntroductionChapter 1: Getting Started with MySQLChapter 2: Using SQL to Manage DataChapter 3: Data TypesChapter 4: Stored ProgramsChapter 5: Query OptimizationChapter 6: Introduction to MySQL Programming Chapter 7: Writing MySQL Programs Using C Chapter 8: Writing MySQL Programs Using Perl DBI Chapter 9: Writing MySQL Programs Using PHP Chapter 10: Introduction to MySQL Administration Chapter 11: The MySQL Data Directory Chapter 12: General MySQL Administration Chapter 13: Access Control and Security Chapter 14: Database Maintenance, Backups, and ReplicationAppendix A: Obtaining and Installing SoftwareAppendix B: Data Type ReferenceAppendix C: Operator and Function ReferenceAppendix D: System, Status, and User Variable ReferenceAppendix E: SQL Syntax ReferenceAppendix F: MySQL Program ReferenceAppendix G: C API ReferenceAppendix H: Perl DBI API ReferenceAppendix I: PHP API Reference Index
Paul DuBois is a writer, database administrator, and leader in the open source and MySQL communities. He has contributed to the online documentation for MySQL and is the author of MySQL and Perl for the Web (New Riders), MySQL Cookbook, Using cshand tcsh, and Software Portability with imake (O'Reilly). He is currently a technical writer with the MySQL documentation team at Sun Microsystems.