MySQL in a Nutshell

Book description

MySQL is the world's most popular open source database. MySQL is designed for speed, power, and flexibility in mission-critical, heavy-use environments and modest applications as well. It's also surprisingly rich in features. If you're a database administrator or programmer you probably love the myriad of things MySQL can do, but sometimes wish there wasn't such a myriad of things to remember. With MySQL in a Nutshell by your keyboard, you can drill down into the full depth of MySQL's capabilities quickly and easily.MySQL in a Nutshell is the indispensable desktop reference to all MySQL functions. Programming language APIs for PHP, Perl, and C are covered, as well as all the popular MySQL utilities.This invaluable resource clearly documents the details that experienced users need to take full advantage of this powerful database management system. Better yet, this wealth of information is packed into the concise, comprehensive, and extraordinarily easy-to-use format for which the in a Nutshell guides are renowned.In addition to providing a thorough reference to MySQL statements and functions, the administrative utilities, and the most popular APIs, MySQL in a Nutshell includes several tutorial chapters to help newcomers get started. Moreover, each chapter covering an API begins with a brief tutorial so that, regardless of your level of experience in any given area, you will be able to understand and master unfamiliar territory.MySQL in a Nutshell distills all the vital MySQL details you need on a daily basis into one convenient, well-organized book. It will save you hundreds of hours of tedious research or trial and error and put the facts you need to truly tap MySQL's capabilities at your fingertips.

Publisher resources

View/Submit Errata

Table of contents

  1. Dedication
  2. Preface
    1. The Purpose of This Book
    2. How This Book Is Organized
    3. Conventions Used in This Book
    4. Using Code Examples
    5. Request for Comments
    6. Safari Enabled
    7. Acknowledgments
  3. 1. Introduction to MySQL
    1. 1.1. The Value of MySQL
    2. 1.2. The MySQL Package
    3. 1.3. Licensing
    4. 1.4. Mailing Lists
    5. 1.5. Books and Other Publications
  4. 2. Installing MySQL
    1. 2.1. Choosing a Distribution
    2. 2.2. Unix Source Distributions
    3. 2.3. Unix Binary Distributions
    4. 2.4. Linux RPM Distributions
    5. 2.5. Macintosh OS X Distributions
    6. 2.6. Novell NetWare Distributions
    7. 2.7. Windows Distributions
    8. 2.8. Postinstallation
  5. 3. MySQL Basics
    1. 3.1. The mysql Client
    2. 3.2. Creating a Database and Tables
    3. 3.3. Show Me
    4. 3.4. Inserting Data
    5. 3.5. Selecting Data
    6. 3.6. Ordering, Limiting, and Grouping
    7. 3.7. Analyzing and Manipulating Data
    8. 3.8. Changing Data
    9. 3.9. Deleting Data
    10. 3.10. Searching Data
    11. 3.11. Importing Data in Bulk
    12. 3.12. Command-Line Interface
    13. 3.13. Conclusion
  6. 4. SQL Statements
    1. 4.1. Statements Grouped by Type
      1. 4.1.1. Data Manipulation
      2. 4.1.2. Database and Table Schema
      3. 4.1.3. Database and Table Properties
      4. 4.1.4. Table Administration
      5. 4.1.5. User Administration
      6. 4.1.6. Server Administration
      7. 4.1.7. Replication
    2. 4.2. Statements and Clauses in Alphabetical Order
  7. 5. String Functions
    1. 5.1. String Functions Grouped by Type
      1. 5.1.1. Converting
      2. 5.1.2. Formatting
      3. 5.1.3. Expressions
      4. 5.1.4. Extracting
      5. 5.1.5. Manipulating
      6. 5.1.6. Security
    2. 5.2. String Functions in Alphabetical Order
  8. 6. Date and Time Functions
    1. 6.1. Date and Time Functions Grouped by Type
    2. 6.2. Date and Time Functions in Alphabetical Order
  9. 7. Mathematical and Aggregate Functions
    1. 7.1. Functions in Alphabetical Order
  10. 8. Flow Control Functions
    1. 8.1. Functions in Alphabetical Order
  11. 9. Miscellaneous Functions
    1. 9.1. Functions in Alphabetical Order
  12. 10. MySQL Server and Client
    1. mysql
    2. mysqld
    3. mysqld_multi
    4. mysqld_safe
  13. 11. Command-Line Utilities
    1. comp_err
    2. isamchk
    3. make_binary_distribution
    4. msql2mysql
    5. my_print_defaults
    6. myisamchk
    7. myisamlog
    8. myisampack
    9. mysqlaccess
    10. mysqladmin
    11. mysqlbinlog
    12. mysqlbug
    13. mysqlcheck
    14. mysqldump
    15. mysqldumpslow
    16. mysqlhotcopy
    17. mysqlimport
    18. mysqlshow
    19. perror
  14. 12. Perl API
    1. 12.1. Using Perl DBI with MySQL
      1. 12.1.1. Connecting to MySQL
      2. 12.1.2. Executing an SQL Statement
      3. 12.1.3. Capturing Data
      4. 12.1.4. Disconnecting from MySQL
      5. 12.1.5. Temporarily Storing Results
    2. 12.2. Perl DBI Method and Function Reference
    3. 12.3. Attributes for Handles
      1. 12.3.1. Attributes for All Handles
      2. 12.3.2. Attributes Only for Database Handles
      3. 12.3.3. Attributes Only for Statement Handles
      4. 12.3.4. DBI Dynamic Attributes
  15. 13. PHP API
    1. 13.1. Using PHP with MySQL
      1. 13.1.1. Connecting to MySQL
      2. 13.1.2. Querying MySQL
    2. 13.2. PHP MySQL Functions in Alphabetical Order
  16. 14. C API
    1. 14.1. Using C with MySQL
      1. 14.1.1. Connecting to MySQL
      2. 14.1.2. Querying MySQL
    2. 14.2. Functions in Alphabetical Order
    3. 14.3. C API Datatypes
  17. A. Datatypes
    1. A.1. Numeric Datatypes
    2. A.2. Accurate Numeric Types
    3. A.3. Approximate Numeric Datatypes
    4. A.4. Date and Time Datatypes
    5. A.5. String Datatypes
  18. B. Operators
    1. B.1. Arithmetic Operators
    2. B.2. Relational Operators
    3. B.3. Logical Operators
    4. B.4. Bitwise Operators
  19. C. Environment Variables
  20. Index
  21. About the Author
  22. Colophon
  23. Copyright

Product information

  • Title: MySQL in a Nutshell
  • Author(s): Russell J.T. Dyer
  • Release date: May 2005
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9780596007898