Book description
Expert MySQL is the leading reference for learning, understanding, and extending the MySQL server. It unlocks the full promise of open source by showing how to modify the code, create your own storage engine, build your own authentication plugins, and even add your own functions and commands to the SQL language. No other book provides the level of detail or the extensive examples of the inner workings of MySQL that have taken engineers years to master. Expert MySQL is a must have book for all systems integrators, engineers, and software developers working with the MySQL server code.
Expert MySQL is also a wealth of information on key aspects of MySQL internals. You'll learn about internal query representation, how the optimizer creates execution plans, and how to exert control over those plans for optimal performance in your environment. You'll even learn to build your own query optimizer, giving insight that can help you understand and resolve tough performance problems. High-availability and replication are also covered, making Expert MySQL a must-have book for anyone doing high-end work involving MySQL.
Shows how to customize MySQL and its storage and authentication engines
Provides in-depth knowledge of internals for use in query tuning and performance troubleshooting
Covers high-end features such as high-availability and replication
What you'll learn
Learn the inner workings of MySQL
Diagnose and improve poorly performing queries
Implement high-availablity solutions and replication
Modify and debug the server code
Build your own pluggable storage engines and authentication modules
Implement new SQL functions and syntax
Build your own query optimizer
Who this book is for
Expert MySQL is written for systems integrators, software developers, and database administrators who are using MySQL and desire a deeper knowledge of MySQL internals in support of high-end work such as performance troubleshooting, customization of the engine and its plugins, query optimizaion, building of high-availability environments, replication of data, and so forth.
Table of contents
- Title
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewers
- Acknowledgments
- Introduction
- Part 1: Getting Started with MySQL Development
-
Part 2: Extending MySQL
- Chapter 5: Debugging
-
Chapter 6: Embedded MySQL
- Building Embedded Applications
- What Is an Embedded System?
- Types of Embedded Systems
- Embedded Database Systems
- Embedding MySQL
- Methods of Embedding MySQL
- Resource Requirements
- Security Concerns
- Advantages of MySQL Embedding
- Limitations of MySQL Embedding
- The MySQL C API
- Getting Started
- Most Commonly Used Functions
- Creating an Embedded Server
- Initializing the Server
- Setting Options
- Connecting to the Server
- Running Queries
- Retrieving Results
- Cleanup
- Disconnecting from and Finalizing the Server
- Putting It All Together
- Error Handling
- Building Embedded MySQL Applications
- Compiling the Library (libmysqld)
- What About Debugging?
- What About the Data?
- Creating a Basic Embedded Server
- What About Error Handling?
- Embedded Server Application
- Managed vs. unmanaged code
- Summary
- Chapter 7: Adding Functions and Commands to MySQL
- Chapter 8: Extending MySQL High Availability
- Chapter 9: Developing MySQL Plugins
-
Chapter 10: Building Your Own Storage Engine
- MySQL Storage Engine Overview
- Storage Engine Development Process
- Source Files Needed
- Unexpected Help
- The Handlerton
- The Handler Class
- A Brief Tour of a MySQL Storage Engine
- The Spartan Storage Engine
- Getting Started
- Stage 1: Stubbing the Engine
- Testing Stage 1 of the Spartan Engine
- Stage 2: Working with Tables
- Testing Stage 2 of the Spartan Engine
- Stage 3: Reading and Writing Data
- Testing Stage 3 of the Spartan Engine
- Stage 4: Updating and Deleting Data
- Testing Stage 4 of the Spartan Engine
- Stage 5: Indexing the Data
- Testing Stage 5 of the Spartan Engine
- Stage 6: Adding Transaction Support
- Summary
- Part 3: Advanced Database Internals
- Appendix
- Index
Product information
- Title: Expert MySQL, Second Edition
- Author(s):
- Release date: December 2012
- Publisher(s): Apress
- ISBN: 9781430246596
You might also like
book
MySQL Troubleshooting
Stuck with bugs, performance problems, crashes, data corruption, and puzzling output? If you’re a database programmer …
book
MySQL High Availability, 2nd Edition
Server bottlenecks and failures are a fact of life in any database deployment, but they don’t …
book
Advanced MySQL 8
Design cost-efficient database solutions, scale enterprise operations and reduce overhead business costs with MySQL Key Features …
book
Introducing InnoDB Cluster: Learning the MySQL High Availability Stack
Set up, manage, and configure the new InnoDB Cluster feature in MySQL from Oracle. If you …