Praise for High Performance MySQL, 4th Edition
I love that this new edition shifts the books emphasis to a modern, pragmatic mindset of team players delivering business value. It moves past the previous editions myopic focus on gnarly internals and theory to wring out diminishing returns, toward a more holistic perspective. The how databases work material is still covered thoroughly, but now with a fresh, humanistic take that is greatly needed.
Baron Schwartz, Lead author of High Performance MySQL , 2nd and 3rd editions
High Performance MySQL has been a staple of the MySQL world since the first edition 17 years ago. MySQL moves ever onward, and Silvia and Jeremy have done an excellent job bringing this essential work up to date with modern MySQL.
Jeremy Cole
Updated to meet modern practices, this latest edition is rich with solid advice for MySQL administrators and developers.
Shlomi Noach, Database Engineer, PlanetScale
High Performance MySQL has a new focus. Its no longer about squeezing every ounce of power from MySQL. We now have a large ecosystem of tools and providers. Silvia and Jeremy beautifully cover how MySQL fits into the new picture. This book is a must-have if you run MySQL in any form.
Sugu Sougoumarane, CTO of PlanetScale, cocreator of Vitess
Silvia and Jeremy did a fantastic job keeping the original spirit of the book strong while updating it to cover the rapidly changing MySQL space.
Peter Zaitsev, Founder and CEO of Percona and coauthor of High Performance MySQL, 3rd edition
High Performance MySQL
by Silvia Botros and Jeremy Tinley
Copyright 2022 Silvia Botros and Jeremy Tinley. All rights reserved.
Printed in the United States of America.
Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.
OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com.
- Editors: Virginia Wilson and Andy Kwan
- Production Editor: Elizabeth Faerm
- Copyeditor: Shannon Turlington
- Proofreader: Kim Cofer
- Indexer: Judith McConville
- Interior Designer: David Futato
- Cover Designer: Karen Montgomery
- Illustrator: Kate Dullea
- November 2021: Fourth Edition
Revision History for the Fourth Edition
- 2021-11-17: First Release
See http://oreilly.com/catalog/errata.csp?isbn=9781492080510 for release details.
The OReilly logo is a registered trademark of OReilly Media, Inc. High Performance MySQL, the cover image, and related trade dress are trademarks of OReilly Media, Inc.
The views expressed in this work are those of the author(s) and do not represent the publishers views. While the publisher and the author(s) have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author(s) disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.
978-1-492-08051-0
[LSI]
Foreword
A fresh copy of High Performance MySQL has been the first book to get plopped down on the desk of every newly-hired DBA, systems engineer, or database-minded developer since it came out nearly two decades ago.
When Jeremy Zawodny and Derek Balling set out to write a book about running MySQL at scale, to bring clarity and structure to years of mystery, it was destined to become an instant classic in the MySQL world. Through the years and several updates, some of the content of the original and the subsequent updates has held up, and some not so much.
MySQL itself has advanced, the MySQL community has changed a lot, and the ways in which we use MySQL have changed. Now in the 4th edition, Silvia and Jeremy undertake a thankless and gargantuan task to update this classic for the modern eraand they are just the pair for the task.
In my time (now more than 20 years!) in the MySQL community, the one consistent thing has been, well, inconsistency. Everyone uses MySQL (and databases in general) in slightly different ways, and they each have different expectations of it. Everyone makes some good decisions, some well-intentioned but questionable decisions, and, always, their share of bad ones. Sometimes, progress is easy, but sometimes it takes sage advice and a new way of thinking about the problem learned straight from an expert.
Silvia and Jeremy are just such experts. Everything from MySQL architecture, optimization, replication, backups, and more, stood to benefit from them sharing their extensive experience in the trenches with MySQL. In this new 4th edition, many subjects got new treatment, a lot of outdated material was removed, errors were corrected, and a new and fresh style was brought to the material.
Like the original (now vintage, and quaintly small) 1st edition, the 4th edition promises to help carry the newest generation of developers, DBAs, and their bosses into the new world of MySQL; sometimes with excitement, but perhaps sometimes kicking and screaming.
Thanks, Silvia and Jeremy, for your hard work to nurture the next generation of MySQL geeks who will be keeping the worlds data safe and the worlds top websites and other data-driven systems performing at their peak.
Congratulations on getting this done through COVID and everything else. The rest of us will make sure to get all the new DBAs a copy.
Jeremy Cole
near Reno, Nevada
October 2021
Preface
The official documentation maintained by Oracle gives you the knowledge necessary to install, configure, and interact with MySQL. This book serves as a companion to that documentation, helping you understand how best to leverage MySQL as a powerful data platform for your use case.
This edition also expands on the growing role of compliance and security as parts of operating a database footprint. New realities such as privacy laws and data sovereignty have changed how companies build their products, and that naturally introduces new complexities in how the technical architecture evolves.
Who This Book Is For
This book is first and foremost for engineers looking to grow their expertise in running MySQL. This edition assumes its audience is familiar with the basic principles of why you want to use a relational database management system (RDBMS). We also assume some experience with general system administration, networking, and operating systems.
We will offer you proven strategies for running MySQL at scale with a modern architecture and more up-to-date tooling and practices.
Ultimately, we hope that the knowledge you gain from this book of MySQLs internals and scaling strategies will help you in scaling the data storage layer at your organization. And we hope that your newfound insight will help you to learn and practice a methodical approach to designing, maintaining, and troubleshooting an architecture that is built on MySQL.