Your Cart
Loading

[Paperback] MySQL 9 Cookbook, Second Edition: Practical recipes for installing, securing, optimizing, and scaling MySQL 9 in production

On Sale
$27.99
$27.99
Added to cart

This book is the perfect hands-on reference for any database administrator, backend developer or data engineer working with MySQL in production. It's organised into 75+ practical, task-driven recipes solving the real challenges that practitioners face every day. These include things like installing and hardening a MySQL 9 server, migrating from MySQL 5.7, MongoDB and PostgreSQL, diagnosing deadlocks and startup failures, tuning slow queries with EXPLAIN ANALYZE, configuring InnoDB Cluster for automatic failover, and implementing point-in-time recovery with the binary log and Clone Plugin.


This second edition looks at the most significant new features of MySQL 9, including the VECTOR data type for use with AI and machine learning workloads, the JavaScript Multilingual Engine powered by GraalVM, the updated InnoDB ClusterSet for high availability across multiple data centres, and the structured JSON error log. Every recipe is shown on a consistent, production-realistic sample platform, giving readers the context to apply each technique directly to their own environments. So, whatever you're doing, this cookbook's got you covered. It'll give you all the exact steps, commands, and explanations you need to get the job done.


Key Learnings

  • Install, configure, and secure a production-ready MySQL 9 server on Linux.
  • Migrate databases from MySQL 5.7, MongoDB, and PostgreSQL to MySQL 9.
  • Tune InnoDB buffer pools, composite indexes, and slow queries for peak throughput.
  • Configure GTID-based source-replica replication with automated health monitoring scripts.
  • Build fault-tolerant InnoDB Clusters with automatic failover using MySQL Shell AdminAPI.
  • Recover databases to a precise point in time using binary logs and mysqlbinlog.
  • Secure MySQL 9 with AppArmor, transparent encryption, SSH tunneling, and RBAC roles.
  • Store and search AI embedding vectors using MySQL 9's native VECTOR data type.
  • Write JavaScript stored procedures using the MySQL Multilingual Engine and GraalVM.
  • Diagnose deadlocks, table corruption, and startup failures with structured JSON logs.


Table of Content

  1. Installing and Configuring Database Server
  2. Migrating to New Server
  3. Managing MySQL Architecture and Storage Engines
  4. Securing Database Server
  5. Optimizing Queries and Performance
  6. MySQL Replication
  7. MySQL High Availability
  8. Backup, Recovery, and Maintenance
  9. Advanced Troubleshooting and Debugging
  10. Advanced Data Features
  11. JavaScript Stored Programs with MySQL MLE