MySQL Admin Cookbook LITE: Replication and Indexing
By Daniel Schneller and Udo Schwedt
4/5
()
About this ebook
Related to MySQL Admin Cookbook LITE
Related ebooks
MySQL Admin Cookbook LITE: Configuration, Server Monitoring, Managing Users Rating: 4 out of 5 stars4/5High Availability MySQL Cookbook Rating: 0 out of 5 stars0 ratingsPostgreSQL 9 Administration Cookbook: LITE Edition Rating: 3 out of 5 stars3/5Creating your MySQL Database: Practical Design Tips and Techniques Rating: 3 out of 5 stars3/5MariaDB Essentials Rating: 0 out of 5 stars0 ratingsMy Part-Time Study Notes on Mssql Server Rating: 0 out of 5 stars0 ratingsMySQL Management and Administration with Navicat Rating: 0 out of 5 stars0 ratingsSQL Server 2017 Integration Services Cookbook Rating: 0 out of 5 stars0 ratingsMicrosoft .NET Framework 4.5 Quickstart Cookbook Rating: 0 out of 5 stars0 ratingsGetting Started with MariaDB - Second Edition Rating: 0 out of 5 stars0 ratingsLearn T-SQL Querying: A guide to developing efficient and elegant T-SQL code Rating: 0 out of 5 stars0 ratingsEntity Framework Core Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsPro SQL Server Internals Rating: 0 out of 5 stars0 ratingsLearning SQLite for iOS Rating: 0 out of 5 stars0 ratingsRESTful Web API Design with Node.js - Second Edition Rating: 1 out of 5 stars1/5Instant SASS CSS How-to Rating: 5 out of 5 stars5/5Node.js High Performance Rating: 0 out of 5 stars0 ratingsMastering Cloud Development using Microsoft Azure Rating: 0 out of 5 stars0 ratingsLearn SQL with MySQL: Retrieve and Manipulate Data Using SQL Commands with Ease Rating: 0 out of 5 stars0 ratingsSQLite Database Programming for Xamarin: Cross-platform C# database development for iOS and Android using SQLite.XM Rating: 0 out of 5 stars0 ratingsLearning Windows Server Containers Rating: 0 out of 5 stars0 ratingsLucene 4 Cookbook Rating: 0 out of 5 stars0 ratingsPostgreSQL Administration Cookbook, 9.5/9.6 Edition Rating: 0 out of 5 stars0 ratingsMastering MariaDB Rating: 0 out of 5 stars0 ratingsMariaDB High Performance Rating: 0 out of 5 stars0 ratingsSecuring SQL Server: Protecting Your Database from Attackers Rating: 0 out of 5 stars0 ratingsPostgreSQL 9 Administration Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsPostgreSQL Development Essentials Rating: 5 out of 5 stars5/5Introduction to DBMS: Designing and Implementing Databases from Scratch for Absolute Beginners Rating: 0 out of 5 stars0 ratings
Information Technology For You
Windows Registry Forensics: Advanced Digital Forensic Analysis of the Windows Registry Rating: 4 out of 5 stars4/5How to Write Effective Emails at Work Rating: 4 out of 5 stars4/5Health Informatics: Practical Guide Rating: 0 out of 5 stars0 ratingsHow To Use Chatgpt: Using Chatgpt To Make Money Online Has Never Been This Simple Rating: 0 out of 5 stars0 ratingsInkscape Beginner’s Guide Rating: 5 out of 5 stars5/5CompTIA ITF+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsAn Ultimate Guide to Kali Linux for Beginners Rating: 3 out of 5 stars3/5SharePoint Designer Tutorial: Working with SharePoint Websites Rating: 1 out of 5 stars1/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Data Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5AWS Certified Cloud Practitioner: Study Guide with Practice Questions and Labs Rating: 5 out of 5 stars5/5Handbook of Digital Forensics and Investigation Rating: 4 out of 5 stars4/5Computer Science: A Concise Introduction Rating: 4 out of 5 stars4/5The Basics of Hacking and Penetration Testing: Ethical Hacking and Penetration Testing Made Easy Rating: 4 out of 5 stars4/5CompTIA Network+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Exam N10-008 Rating: 0 out of 5 stars0 ratingsCompTIA Security +: Malware and Malware Infections Rating: 0 out of 5 stars0 ratingsThe Power of Pull (Review and Analysis of Hagel, Brown and Davison's Book) Rating: 5 out of 5 stars5/5Information Security Best Practices: 205 Basic Rules Rating: 0 out of 5 stars0 ratingsRaspberry Pi :Raspberry Pi Guide On Python & Projects Programming In Easy Steps Rating: 3 out of 5 stars3/5Hacking Essentials - The Beginner's Guide To Ethical Hacking And Penetration Testing Rating: 3 out of 5 stars3/5Computer Organization and Design: The Hardware / Software Interface Rating: 4 out of 5 stars4/5Codeless Data Structures and Algorithms: Learn DSA Without Writing a Single Line of Code Rating: 0 out of 5 stars0 ratingsSupercommunicator: Explaining the Complicated So Anyone Can Understand Rating: 3 out of 5 stars3/5Panda3d 1.7 Game Developer's Cookbook Rating: 0 out of 5 stars0 ratingsPractical Ethical Hacking from Scratch Rating: 5 out of 5 stars5/5COMPUTER SCIENCE FOR ROOKIES Rating: 0 out of 5 stars0 ratingsChatGPT: The Future of Intelligent Conversation Rating: 4 out of 5 stars4/5The Programmer's Brain: What every programmer needs to know about cognition Rating: 5 out of 5 stars5/5Excel VBA: A Step-By-Step Tutorial For Beginners To Learn Excel VBA Programming From Scratch: 1 Rating: 4 out of 5 stars4/5
Reviews for MySQL Admin Cookbook LITE
1 rating0 reviews
Book preview
MySQL Admin Cookbook LITE - Daniel Schneller
Table of Contents
MySQL Admin Cookbook: LITE
Credits
About the Authors
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Monitoring and Analyzing a MySQL Installation
Introduction
Checking free InnoDB tablespace
Getting ready
How to do it...
How it works...
There's more...
See also
Establishing alerting mechanisms for low remaining tablespace by using triggers
Getting ready
How to do it...
How it works...
There's more...
Enabling the MySQL scheduler
Improving configuration
See also
Estimating tablespace requirements
Getting ready
How to do it...
How it works...
There's more...
See also
Identifying and changing MySQL variables
Getting ready
How to do it...
How it works...
There's more...
Displaying more than one named variable at a time
Displaying global settings
See also
Assessing the overall table count
Getting ready
How to do it...
How it works...
See also
Finding the biggest tables
Getting ready
How to do it...
How it works...
See also
Finding all columns with a certain name and/or type
Getting ready
How to do it...
How it works...
There's more...
See also
Finding all tables referencing each other
Getting ready
How to do it...
How it works...
See also
2. Configuring MySQL
Introduction
Setting up a fixed InnoDB tablespace
Getting ready
How to do it...
How it works...
There's more...
Setting up an auto-extending InnoDB tablespace
Getting ready
How to do it...
How it works...
There's more...
Making an existing tablespace auto-extensible
Controlling the steps of tablespace extension
Limiting the size of an auto-extending tablespace
Adding a new auto-extending data file
Storing InnoDB data in one file per table
Getting ready
How to do it...
How it works...
Decreasing InnoDB tablespace
Getting ready
How to do it...
How it works...
There's more...
Enabling and configuring binary logging
Getting ready
How to do it...
How it works...
There's more...
Configuring the InnoDB redo log
Getting ready
How to do it...
What just happened...
There's more...
Understanding and configuring important MySQL and InnoDB timeout options
Getting ready
How to do it...
How it works...
Setting values for innodb_rollback_on_timeout / innodb_lock_wait_timeout
Setting values for interactive_timeout / wait_timeout
Setting values for net_read_timeout / net_write_timeout
Adjusting table and database name letter case handling for better platform independence
Getting ready
How to do it...
How it works...
See also...
Installing MySQL as a Windows service with custom options
Getting started
How to do it...
How it works...
There's more...
Running multiple MySQL server instances in parallel on a Linux server
Getting ready
How to do it...
How it works...
There's more...
Turning off AppArmor / SELinux for Linux distributions
Windows
Considering the alternative MySQL Sandbox project
See also
Preventing invalid date values from being stored in DATE or DATETIME columns
Getting ready
How to do it...
Getting ready
There's more...
Configuring SQL mode for the current session only
3. MySQL User Management
Introduction
Configuring MySQL Administrator to display global privileges and hosts
Getting ready
How to do it...
How it works...
Defining an alternative user for administrative tasks
Getting ready
How to do it...
How it works...
There's more...
See also
Disabling the default accounts
Getting ready
How to do it...
How it works...
Creating a basic user
Getting ready
How to do it...
How it works...
There's more...
See also
Creating an installation user
Getting ready
How to do it...
How it works...
There's more...
Creating the account without using MySQL Administrator
Permitting management of user rights
See also
Creating a read-only account
Getting ready
How to do it...
How it works...
There's more...
Creating the account without using MySQL Administrator
Allowing stored procedure calls
See also
Defining a specific user for backup
Getting ready
How to do it...
How it works...
There's more...
See also
Defining a specific user for replication
Getting ready
How to do it...
How it works...
There's more...
Allowing access from specific hosts only
Getting ready
How to do it...
How it works...
There's more...
Creating the account without using MySQL Administrator
Allowing access from a group of hosts
See also
Regaining access to your database in case of lost account information
Getting ready
How to do it...
How it works...
There's more...
Avoiding plain text passwords in administrative scripts
Getting ready
How to do it...
How it works...
Example of creating a user in a script without a plain text password
There's more...
Index
MySQL Admin Cookbook: LITE
MySQL Admin Cookbook: LITE
Copyright © 2011 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2011
Production Reference: 1130411
Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK.
ISBN 978-1-849516-12-9
www.packtpub.com
Cover Image by Vinayak Chittar ( <vinayak.chittar@gmail.com> )
Credits
Authors
Daniel Schneller
Udo Schwedt
Reviewers
Kai Seidler
Marc Delisle
Acquisition Editor
Sarah Cullington
Technical Editor
Gauri Iyer
Indexer
Tejal Daruwale
Graphics
Geetanjali Sawant
Production Coordinator
Adline Swetha Jesuthas
Cover Work
Kruthika Bangera
About the Authors
Daniel Schneller works as a software developer, database administrator, and general IT professional for an independent software vendor in the retail sector. After successfully graduating from the University of Cooperative Education in Heidenheim, Germany with a degree in Business Computer Science, he started his career as a professional software developer, focused on the Microsoft technology stack. In 2002, he started focusing on enterprise-level Java development and has since gained extensive knowledge and experience implementing large scale systems based on Java EE and relational databases, especially MySQL since version 4.0.
Currently, he is mostly involved with the ongoing development of framework-level functionality, including customization and extension of an ORM-based persistence layer. He is involved in different open source projects such as FindBugs, Eclipse, and Checkstyle, and infrequently blogs about Java, MySQL, Windows, Linux, and other insanities at http://www.danielschneller.com.
When I first was asked by Packt Publishing whether I would be interested in writing a book about MySQL on Christmas Eve 2008 little did I know how much work, stress, but also what a lot of fun I was headed for.
Now, that the book is finally done I would like to thank those people without whom getting it done would have been impossible.
First of all, I'd like to thank Udo for agreeing to be my co-author. Without him, this whole thing would have taken a lot longer and would have been not half as useful as I believe it has turned out now.
I would also like to thank the team at Packt Publishing—most importantly for noticing and reading my blog, consequently contacting me to get the whole thing started—but also for taking care of schedules, providing support, guidance and feedback, and keeping us on track the whole way.
Last, but by no means least, I want to thank Jenny—for encouraging me to write a book in the first place, and then making sure I never ran out of tea, cookies, or motivation on the countless evenings I spent sitting in front of the keyboard instead of with her. I dedicate this book to her.
Udo Schwedt has over ten years of experience in the IT industry as a professional Java developer and software architect. He is head of the Java architecture team and deputy head of the Java development department at the IT service provider for Germany's market leader in the Do-It-Yourself sector.
He has been fascinated by computers since his childhood, and taught himself the basics of programming during his school years. After graduating from school, he began his studies at the RWTH Aachen, Germany, which he finished with a summa cum laude degree in computer science, minoring in psychology with a focus on software ergonomics.
Udo started his career