Book description
Design cost-efficient database solutions, scale enterprise operations and reduce overhead business costs with MySQL
Key Features
- Explore the new and advanced features of MySQL 8.0
- Use advanced techniques to optimize MySQL performance
- Create MySQL-based applications for your enterprise with the help of practical examples
Book Description
Advanced MySQL 8 teaches you to enhance your existing database infrastructure and build various tools to improve your enterprise applications and overall website performance. The book starts with the new and exciting MySQL 8.0 features and how to utilize them for maximum efficiency. As you make your way through the chapters, you will learn to optimize MySQL performance using indexes and advanced data query techniques for large queries. You will also discover MySQL Server 8.0 settings and work with the MySQL data dictionary to boost the performance of your database. In the concluding chapters, you will cover MySQL 8.0 Group Replication, which will enable you to create elastic, highly available, and fault-tolerant replication topologies. You will also explore backup and recovery techniques for your databases and understand important tips and tricks to help your critical data reach its full potential.
By the end of this book, you'll have learned about new MySQL 8.0 security features that allow a database administrator (DBA) to simplify user management and increase the security of their multi-user environments.
What you will learn
- Explore new and exciting features of MySQL 8.0
- Analyze and optimize large MySQL queries
- Understand MySQL Server 8.0 settings
- Master the deployment of Group Replication and use it in an InnoDB cluster
- Monitor large distributed databases
- Discover different types of backups and recovery methods for your databases
- Explore tips to help your critical data reach its full potential
Who this book is for
Advanced MySQL 8 is for database administrators, data architects, and database developers who want to dive deeper into building advanced database applications in the MySQL environment.
Publisher resources
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Introduction
-
MySQL 8's New Features
- Global data dictionary
- MySQL 8's support roles and history
- MySQL 8 supports the creation and management of resource groups and permissions
- InnoDB enhancements
- JSON enhancements functionalities
- Invisible indexes from MySQL optimizer
- Features deprecated in MySQL 8.0
- A quick look at the features removed from MySQL 8.0
- Summary
-
Indexing Your Data for High Performance
- How does MySQL optimizer think in MySQL 8.0?
- What kind of data type should I consider indexing first and why?
- Why should I have a good index strategy?
- What impact does an index have on MySQL performance?
- How to display and analyze a table structure
- How to efficiently read MySQL query execution plans
- How to know when to create an index
- Multiple column index versus multiple indexes
- How to organize your columns in an index for good performance
-
Tips and techniques
- The five general rules for your indexes
- Tip 2 – the five general rules to optimize your queries
- Tip 3 – understand your material resources
- Tip 4 – the configuration is not the only thing to take into consideration
- Tip 5 – recommendations on the performance of the MySQL architecture
- A technical case study
- Summary
-
Advanced Data Techniques for Large Queries
- The most important variables are full-scan indicators
- Partitioning a table
- Managing partitions
- Using partitions
- Getting rid of unused and duplicate indexes
- The most important query optimizations
- Temporary tables
- Case study 1 – an example of how to optimize a complex query
- Case study 2 – how to optimize sort indexes
- Tips and techniques
- Summary
- MySQL Data Dictionary in MySQL 8.0
-
MySQL Server Settings
- Getting started with the most significant variables
-
MySQL server optimization
- Control the types of data change operations
- Enabling the adaptive hash indexing function
- Set a limit on the number of concurrent threads
- Controlling the amount of InnoDB preloading
- Increasing the number of background threads
- Controlling InnoDB input/output performance in the background
- Taking advantage of multicore processors
- Preventing punctual operations
- Configuring the number and size of instances
- The InnoDB buffer pool
- The thread cache
- Tips and techniques
- Summary
-
Group Replication in MySQL 8.0
- High availability and requirements
- Replication
- Group replication
- An overview of MySQL's database replication
- MySQL's group replication architecture
- Limitations of group replication
- Group replication security
- Operations on an online group
- Summary
- InnoDB Cluster in MySQL 8.0
- Monitoring Your Large Distributed Databases
-
Authentication and Security Management with MySQL 8.0
- MySQL 8.0 security features
- Privileges provided by MySQL 8.0
- Where are privileges stored in MySQL 8.0?
- The differences between dynamic and static privileges
- Creating roles and users in MySQL 8.0
- Displaying assigned roles using SHOW GRANTS
- Troubleshooting connection problems
- Tips and techniques
- Summary
-
Advanced MySQL Performance Tips and Techniques
-
Tips/best practices
- Optimizing your queries for the query cache
- EXPLAIN your SELECT queries
- LIMIT 1 when getting a unique row
- Indexing for search fields
- Indexing strategy for Joins
- Avoiding SELECT * and COUNT *
- Almost always have an ID field
- Using ENUM over VARCHAR
- Using prepared statements if and when possible
- Splitting the big DELETE or INSERT queries
- Avoiding the delete trigger
- Techniques
- Summary
-
Tips/best practices
- Other Books You May Enjoy
Product information
- Title: Advanced MySQL 8
- Author(s):
- Release date: January 2019
- Publisher(s): Packt Publishing
- ISBN: 9781788834445
You might also like
book
MySQL 8 Cookbook
Design and administer enterprise-grade MySQL 8 solutions About This Book Store, retrieve, and manipulate your data …
book
MySQL Crash Course
MySQL Crash Course is a fast-paced, no-nonsense introduction to relational database development. It’s filled with practical …
book
High Performance MySQL, 2nd Edition
High Performance MySQL is the definitive guide to building fast, reliable systems with MySQL. Written by …
book
MySQL 8 Administrator's Guide
Step by step guide to monitor, manage, and secure your database engine About This Book Your …