MySQL Cookbook: Solutions for Database Developers and Administrators

Front Cover
"O'Reilly Media, Inc.", Jul 28, 2014 - Computers - 866 pages

MySQL’s popularity has brought a flood of questions about how to solve specific problems, and that’s where this cookbook is essential. When you need quick solutions or techniques, this handy resource provides scores of short, focused pieces of code, hundreds of worked-out examples, and clear, concise explanations for programmers who don’t have the time (or expertise) to solve MySQL problems from scratch.

Ideal for beginners and professional database and web developers, this updated third edition covers powerful features in MySQL 5.6 (and some in 5.7). The book focuses on programming APIs in Python, PHP, Java, Perl, and Ruby. With more than 200+ recipes, you’ll learn how to:

  • Use the mysql client and write MySQL-based programs
  • Create, populate, and select data from tables
  • Store, retrieve, and manipulate strings
  • Work with dates and times
  • Sort query results and generate summaries
  • Use stored routines, triggers, and scheduled events
  • Import, export, validate, and reformat data
  • Perform transactions and work with statistics
  • Process web input, and generate web content from query results
  • Use MySQL-based web session management
  • Provide security and server administration
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Chapter 1 Using the mysql Client Program
1
Chapter 2 Writing MySQLBased Programs
25
Chapter 3 Selecting Data from Tables
105
Chapter 4 Table Management
127
Chapter 5 Working with Strings
139
Chapter 6 Working with Dates and Times
179
Chapter 7 Sorting Query Results
233
Chapter 8 Generating Summaries
271
Chapter 14 Using Joins and Subqueries
473
Chapter 15 Statistical Techniques
511
Chapter 16 Handling Duplicates
549
Chapter 17 Performing Transactions
565
Chapter 18 Introduction to MySQL on the Web
577
Chapter 19 Generating Web Content from Query Results
605
Chapter 20 Processing Web Input with MySQL
647
Chapter 21 Using MySQLBased Web Session Management
725

Chapter 9 Using Stored Routines Triggers and Scheduled Events
307
Chapter 10 Working with Metadata
335
Chapter 11 Importing and Exporting Data
367
Chapter 12 Validating and Reformatting Data
409
Chapter 13 Generating and Using Sequences
445
Chapter 22 Server Administration
757
Chapter 23 Security
783
Index
805
About the Author
838
Copyright

Other editions - View all

Common terms and phrases

About the author (2014)

Paul DuBois was one of the first contributors to the online MySQL Reference Manual, a renowned documentation project that supported MySQL administrators and database developers in the first few years of MySQL's existence in the late 1990's. Paul went on to write more than six books on MySQL, including the first edition of "MySQL Cookbook." He is also the author of "Using csh & tcsh" and "Software Portability with imake," both by O'Reilly.

Bibliographic information