Book Review

Review: MySQL Admin Cookbook

MySQL Admin CookbookMySQL Admin Cookbook from Packt Publishing, authored by Daniel Schneller & Udo Schwedt, is a new addition to the MySQL literary genre with 99 great recipes for mastering MySQL configuration and administration. Announcing quick answers to common problems, these 99 recipes cover a broad spectrum of managing MySQL, and are appropriate for new MySQL administrators as well as more experienced administrators. MySQL Admin Cookbook is available in dead tree and PDF formats. The book's website is: https://www.packtpub.com/mysql-admin-cookbook/book with errata found at http://www/packtpub.com/support.


Subjects Covered

  • Replication
  • Indexing Tools
  • Backing Up & Restoring MySQL Data
  • Managing Data
  • Monitoring & Analyzing MySQL Installation
  • Configuring MySQL
  • MySQL User Management
  • Managing Schemas
  • Good to Know

All in that order.

Recipe Format

All recipes follow a common format:

  1. Introduction of what this recipe will accomplish and why you'd want to use it.
  2. Getting Ready – This section outlines the requirements for the recipe, user privileges, programming language familiarity, additional software required, and where to find additional information.
  3. How to do it – Step-by-step instructions and expected output from these steps. All the reader has to do is follow the steps.
  4. How it works – The details on how the recipe works. If you're unsure what happens during the How to do it section, be sure to spend all the time needed to understand how the recipe works. Don't implement any recipe unless you fully understand what it's doing and how it works.
  5. There's more – Following on from the How it works section, this part will give the reader additional information to expand the functionality of the recipe, or provide other tools that provide the same, or nearly the same functionality. If there are additional concerns to look out for, it'll be included here as well.

MySQL Admin Cookbook Review


MySQL Admin Cookbook really is not designed to be read cover-to-cover as I did for this review, but it left me with a clunkiness about chapter order. There were a few of the recipes I thought were too basic – creating a basic user, creating indexes and tables. Those DBA functions should be automatic before diving into a book with this level of technical content. After those little bits of personal opinion, overall, I really liked the book. I put a few of the recipes into action with the servers I'm responsible for – Using a custom prompt, I would rely on the tab within terminal to see which server I was on, but that tab is missing when I SSH into a server from my phone. I quickly used Display query results page by page and Default pager as well since it makes it much easier to use the MySQL command-line client on smaller screens. Sometimes, it's the small things that make a large impact.

I work mostly from the command-line, but I like the way MySQL Admin Cookbook used both command-line tools and MySQL GUI tools to demonstrate the recipes. The authors acknowledge that the MySQL GUI tools are end of life, but they are still useful tools, so don't discount them. One of the things I thought was left out was using phpMyAdmin as one of the “GUI” tools. If you've never heard of phpMyAdmin, it is a very popular web-based MySQL interface used by many web hosting companies. One of the reviewers is heavily involved with phpMyAdmin development as well, so I would think at least one recipe in Chapter 3: Tools should have used phpMyAdmin.

One of the most popular command-line tools outside of MySQL command-line is Maatkit, which is mentioned several times throughout the book. On this subject, Maatkit could really use its own book ( hint, hint Baron! ), but I digress – hopefully in a positive direction.

At the time of this review, the was no errata on the Pakt website, and I couldn't add anything to the errata anyway. I've not tried all the recipes for accuracy, but I couldn't find any tpyos or mispelings.

If you'd like to see another DBA's perspective on MySQL server management or gain additional MySQL technical expertise, pick up a copy of MySQL Admin Cookbook.

 


If you'd like your MySQL, Drupal, or other F/OSS book reviewed on this site, please contact reviews@thetajoin.com.


Review: MySQL Administrator's Bible

MySQL Administrator's Bible

On the front cover of MySQL Administrator’s Bible is a sentence that reads:

“The book you need to succeed!”

I must say, I do agree. Authored by two very experienced DBAs, Sheeri Cabral and Keith Murphy,
they’ve combined their talents to cover what you really need to know to
succeed. This book is very versatile. If you’re new to MySQL, or
experienced in another database and have to start administrating MySQL,
you need this book. I can honestly say, even if you have years of MySQL
experience, you will learn something new. I did. Divided into four
parts, MySQL Administrator’s Bible covers your First Steps with MySQL,
Developing with MySQL, Core MySQL Administration and Extending Your
Skills.

First Steps with MySQL starts with a gentle introduction
to MySQL with company information, which seems to be changing annually,
and most importantly, the MySQL community itself. What makes MySQL so
fantastic is the community. After that, you’ll be lead into installing
and configuring MySQL on various platforms including Linux, Windows and
Solaris while touching on post installation configuration too. Basic
security is covered as well as some tips on troubleshooting and
accessing your new MySQL installation using tools included with MySQL
or using third party software.

Developing with MySQL covers the
MySQL Language Structure and if you’re coming from another RDBMS, it
covers how MySQL deviates from the SQL standard by extending that
standard to make MySQL the number one open source database used on the
Internet. After that, this section covers the same type of topics
covering just about any other mainstream databases such as using stored
procedures, cursors, events, views and transactions.

The Core
MySQL Administration is the heart of this book. It covers MySQL server
tuning, covering all major storage engines including MyISAM, InnoDB,
Falcon, PBXT, and NDB engines including the first time I’ve seen in
print, the Maria storage engine. An entire chapter is devoted to
implementing cache tables and using the query cache. Memcached is also
mentioned, and mentioned again in the final section. Continuing on with
what I consider the most important job of a DBA, backup and recovery.
Databases are very central to running a business, any data loss could
put a company out of business. Be prepared.

This section gives a
solid introduction to the topic of dealing with users, and how they are
managed within MySQL. Count on covering GRANT/REVOKE, using SHOW GRANTS
and mk-show-grants MaatKit tool. Partitioning, logging and replication
and measuring performance rounds out this section.

If you have
experience with another RDBMS, plan on spending a significant amount of
time in this section. Not that the other sections aren’t important,
they are, but this is the bread and butter of what a MySQL DBA does on
a daily basis.

Extending You Skills section can be considered
getting your Masters in Database Administration. Just about every DBA
will have to tackle improving queries and the tuning of indexes. The
second most important job of a DBA is monitoring performance of your
MySQL server. Don’t let your users be your first line of monitoring! Be
proactive, there are plenty of open source monitoring tools available.
The most popular are discussed, as well as MySQL Enterprise and third
party companies too. MySQL Data Dictionary is covered in in detail over
58 pages. This is the most I’ve read in any book about the data
dictionary. 

Last but not least, most high performance MySQL
systems involve scaling up or out. It covers the usual suspects of
replication, MySQL Cluster, and memcached. MySQL Proxy is initially
covered and has an appendix to expand on that information. MySQL Proxy
itself is worthy of its own book. (hint, hint :) ) Two more appendices
cover MySQL Functions and Operators, and additional resources.

Even
though this book targets MySQL 5.1/6.0, there is plenty of information
that will apply to 5.0. If you’re still on 5.0, don’t hesitate to pick
up a copy. This will be a book that can stay with you as your upgrade
to 5.1 and beyond. The companion website –
http://www.wiley.com/go/mysqladminbible contains all the code from the
book too, rounding out this fine tome.

What didn’t I like about
the book? There are only a couple of things, all personal I’m sure.
First, I really don’t care too much for tables of options from the
various tools. Most open source tools are developed rather quickly and
options change. This could render portions of the book out of date
quickly.

The other thing I noticed that wasn’t mentioned in the
book was the community versions of MySQL supported by Open Query and
Percona. The latter has their own storage engine, XtraDB and backup
solution, XtraBackup.

All in all, this is a very solid book on
administering MySQL. This book digs deeper, the experience of the
authors really show. Well done Sheeri and Keith!

Creative Commons License
This work by Mark Schoonover is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
Based on a work at blog.thetajoin.com. All comments copyright their respective owners.

Syndicate content
Drupal SEO