Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Mastering MariaDB
Mastering MariaDB

Mastering MariaDB: Debug, secure, and back up your data for optimum server performance with MariaDB

Arrow left icon
Profile Icon Razzoli
Arrow right icon
Mex$811.99 Mex$902.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8 (10 Ratings)
eBook Sep 2014 384 pages 1st Edition
eBook
Mex$811.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial
Arrow left icon
Profile Icon Razzoli
Arrow right icon
Mex$811.99 Mex$902.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8 (10 Ratings)
eBook Sep 2014 384 pages 1st Edition
eBook
Mex$811.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial
eBook
Mex$811.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Mastering MariaDB

Left arrow icon Right arrow icon

Description

This book is intended for intermediate users who want to learn how to administrate a MariaDB server or a set of servers. It is aimed at MariaDB users, and hence working knowledge of MariaDB is a prerequisite.

What you will learn

  • Identify inefficient queries using logs and log analysis tools
  • Design your indexes and optimize your queries to produce efficient query plans
  • Tune MariaDB and InnoDB configuration to achieve a stabilized degree of performance and reliability
  • Create and manage users, roles, and permissions
  • Perform regular backups and restore data
  • Share your data through several partitions, disks, or servers using techniques such as replication to make operations faster
  • Set up, maintain, and troubleshoot a replication environment as well as a database cluster

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 24, 2014
Length: 384 pages
Edition : 1st
Language : English
ISBN-13 : 9781783981557
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Sep 24, 2014
Length: 384 pages
Edition : 1st
Language : English
ISBN-13 : 9781783981557
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Mex$ 3,262.97
MariaDB High Performance
Mex$1004.99
Mastering MariaDB
Mex$1128.99
MariaDB Cookbook
Mex$1128.99
Total Mex$ 3,262.97 Stars icon

Table of Contents

13 Chapters
1. Understanding the Essentials of MariaDB Chevron down icon Chevron up icon
2. Debugging Chevron down icon Chevron up icon
3. Optimizing Queries Chevron down icon Chevron up icon
4. Transactions and Locks Chevron down icon Chevron up icon
5. Users and Connections Chevron down icon Chevron up icon
6. Caches Chevron down icon Chevron up icon
7. InnoDB Compressed Tables Chevron down icon Chevron up icon
8. Backup and Disaster Recovery Chevron down icon Chevron up icon
9. Replication Chevron down icon Chevron up icon
10. Table Partitioning Chevron down icon Chevron up icon
11. Data Sharding Chevron down icon Chevron up icon
12. MariaDB Galera Cluster Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8
(10 Ratings)
5 star 20%
4 star 60%
3 star 10%
2 star 0%
1 star 10%
Filter icon Filter
Top Reviews

Filter reviews by




Amazon Customer Jun 23, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is for DB admins. I was hoping it would help me master query tools and or querying more. Instead, it's more about knowing the database tools and what they all do. It is an excellent book if that's what you're looking for. I think for me it was the step after the kind of mastery I was hoping for. From the description, I was thinking this has to just be a high-level outline, but nope, what's in the description is what's in the book; nothing more and nothing less.
Amazon Verified review Amazon
Omega BK Apr 10, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A great book, practical and concise! Mastering is just the right word. Packt Publishing unveiled a good book.This book provides the knowledge needed to administrate the MariaDB server and clusters of servers.It helps to master database development on the MariaDB server,It helps administrators how to maintain a MariaDB server, diagnosing and solving problems encounter on production, such as MariaDB errors, logs, and locks.Performance can be a bottleneck and administrators or Dba will love how this books shows the way to improve the performance of a server by identifying slow queries.I really loved the way the author dealt with set up a proper backup plan and recover data when disaster occurs .The galleria arbitrator was not forgotten, this special type of node designed to help solve the split brain problem.A great book, I really love it and use it on my daily work.What I dislike:the font and indentation of command-line input or output, this font in bold makes reading painful ( really ! )i.e the show processlist output is awful( sorry )despite that, I would recommend this book !thanks a lot.
Amazon Verified review Amazon
Anthony Garratt Sep 02, 2016
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
I'm not sure you'll 'master' MariaDB with this book but you'll certainly learn plenty. It's a bit of a cookbook style, which makes it very readable.
Amazon Verified review Amazon
Ramon Maria Jan 10, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
First of all, let me say this is not a beginner's book. Some knowledge (deep knowledge I would say for some chapters) is necessary to follow along with the concepts and examples stated in the book.The author, Federico Razzoli, being himself a contributor to the Open Source project MariaDB has a great and very deep knowledge of MariaDB. And that knowledge gets synthesized on this book.This book is heavily focused to administrate a MariaDB server/cluster. So if you are starting with MariaDB or learning SQL in general better look for another, more accessible, book. Personally I would recommend MariaDB cookbook from Daniel Bartholomew and available on packtpub too. The audience for this book is MariaDB administrators who want to understand, leverage and squeeze at its maximum the power MariaDB has to offer.Every chapter has tons of example code (you can download them from the packtpub site) and very useful insight on each and every aspect that is developed.The chapters I've found the most useful for me (I'm not a MariaDB administrator, but I have worked with it) are chapters 1, 2, 3, 5 and 6. They have helped me understand how MariaDB works for the things I usually use the most from it (optimize queries, look for errors, how the cache work, etc...). There are other aspects of the book such as table compression, replication and sharding that are thoroughly explained but I have never used. Anyway, if it comes the time for using them, I know now where to go to use them in an efficient manner.Following I summarize each chapter. What is it about and what can be found in it.Chapter 1 - Understanding the essentialsMariaDB architecture and history. Use of the MariaDB command-line shell. Good point on pagers when making queries on unix-like systems. Information about storage engines available. Information about XtraDB, TokuDB, MyISAM and Aria as different storage engines with the things that makes them unique. There is a section too showing other engines like OOGRAPH (for graph-like data), BLACKHOLE (not sure why it should be used as it does not store anything and always returns an empty set when queried), and other not so usual engines that can be used with MariaDB. Interesting section about logs (what logs do exist and where are they) and caches (with recommendation on size). Thorough explanation about the InnoDB data structure and the authorization and security process on MariaDB. The chapter ends explaining the information_schema database and with a discussion about the compatibility between different versions of MariaDB and MySQL.Chapter 2 - DebuggingThis chapter is about dealing with errors on MariaDB. Deep explanation on different ways to trace an error, from the MariaDB shell console to locating clue information on specific error-logs generated by MariaDB. I like the different sections where the file format for the different logs are explained. This is interesting for me as it eases the process of creating self-made tools to trace down errors. He shows also how to do maintenance for the logs (flushing, rotating, etc...). Different techniques for debugging stored procedures.Chapter 3 - Optimizing queriesHow to activate the slow query log on MariaDB and where this log is located. As in the previous chapter the format file for the log is explained along with tips to interpret the information that is stored within. Use of the slow_log table. Use of the pt-query-digest from the percona toolkit to help track down why a query is slow and how can it be optimized. There is a discussion too about storage engines and indexes. For the indexes only BTREE and HASH are discussed. Others like FULLTEXT and RTREE aren't. Use of EXPLAIN and how to interpret its results and tips on using indexes to optimize queries using joins and subqueries.Chapter 4 - Transactions and locksVery thorough and comprehensive treatment of locks and transactions and how do they work on MariaDB (specifically on InnoDB engine). Tips on tracking down locks and transactions. How to query MariaDB to get info about a lock or a transaction and how to deal with deadlocks when you get one. Special treatment on metadata locks, available on MariaDB since its 5.5 version. Metadata locks make sure the structure of a table will not change while reading or modifying some of its registers.Chapter 5 - Users and connectionsThis chapter goes all the way down from creating a user to give it permissions and the authentication process. It shows you too how to setup MariaDB for using a SSL connection. Adding to that it also shows you how to setup PAM modules to authenticate users and how to configure pools of threads on Unix-like systems and on Windows. A very deep explanation on handling connections (monitoring, killing, etc...).Chapter 6 - CachesA detailed trip over the different caches present on MariaDB. Caches for the different storage engines, how to set them and the different cache pages. Explains the query cache. When to use it and under which circumstances must be avoided (e.g. OQGRAPH storage engine), how to configure it and getting status information. Setting per-session buffers and why a good setting can avoid a DoS over a MariaDB server.Chapter 7 - InnoDB compressed tablesExplains the capacity of the InnoDB storage engine to compress its data. This can be used when the database data grows too much. It also can speed up your queries or not. Anyway this chapter deals with the pros and cons of such technique and when and how to use it and how to monitor it. This chapter ends up with a brief explanation of other compression solutions for the other storage engines.Chapter 8 - Backup and disaster recoveryPreventing data loss the author gives the necessary insight on how to do backups of your data. He explains the different type of backups and how do they differ depending on the storage engine. He also explains which physical files should be stored when doing a full backup, from info files to log files. I found particularly interesting how to create incremental backups using rsync. He talks also about a tool from Percona, XtraBackup, that does not need the server to be stopped and does not lock tables. A word on securing the backups is given. The chapter ends with a thorough discussion on repairing tables.Chapter 9 - ReplicationImproving fault tolerance. Improving query performance using a master-slave architecture. How the binary log is used to make replication possible and how to set it up. How to troubleshoot the most common problems.Chapter 10 - Table partitioningIn this chapter the author explains how to deal with very large tables splitting them up to be easier to read and write on them. Which storage engines can be used and how to maintain those partitions.Chapter 11 - Data shardingThe author discusses the three main methods MariaDB makes available to distribute data among servers: balancing I/O, the FEDERATEDX storage engine and the SPIDER storage engine, which I personally have found very interesting.Chapter 12 - MariaDB Galera clusterThis chapter explains how to create a cluster of MariaDB servers using Galera. It starts presenting key Galera concepts and why it fits perfectly for cloud computing. Following that there is a tutorial-like section explaining how to install and configure Galera and how to create a cluster along with its limitations (avoid query cache or using XA transactions). Monitoring tools and tips are given to control the clusters with examples of scripts. Finally the Galera Load Balancer is presented to distribute the workload among the nodes forming the cluster.Disclaimer: I was given an ebook copy from the publishers in order to review it.
Amazon Verified review Amazon
ernestina menasalvas Jan 07, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Mastering Maria DB is a book for learning how to administrate the MariaDB server.It is intended for users that are quite familiar with MySQL. Newcomers to MariaBD even if they are familiar with other relational database servers administrative task will find it hard to follow.It is not a theoretical book it is a hands-on book so read it together with your instance of MariaBD server runnig close to you to take advantage of it.The main features an admisnistrator of MariaBD would know are covered in the book. However being a master administrator it could happen that sometimes some of the problems tackled you will feel you would like them to be covered more roughly and deeper
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.