Free Sample
+ Collection

Creating your MySQL Database: Practical Design Tips and Techniques

Starting
Marc Delisle

A short guide for everyone on how to structure your data and set-up your MySQL database tables efficiently and easily.
$6.00
$19.99
RRP $11.99
RRP $19.99
eBook
Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781904811305
Paperback108 pages

About This Book

  • How best to collect, name, group, and structure your data
  • Design your data with future growth in mind
  • Practical examples from initial ideas to final designs
  • The quickest way to learn how to design good data structures for MySQL
  • From the author of Mastering phpMyAdmin

 

Who This Book Is For

Anyone working with applications that use a MySQL database backend will benefit greatly from the advice and techniques in this book. Although a working knowledge of both SQL and MySQL is assumed, the book is suitable for both beginners and intermediate users alike. Whether you read it through and absorb the advice or work through it on a live project, the efficiency and maintainability of your databases will certainly improve as a result.

Table of Contents

Chapter 1: Preface
What This Book Covers
What You Need for This Book
Conventions
Reader Feedback
Customer Support
Chapter 2: Introducing MySQL Design
MySQL's Popularity and Impact
Data as a Resource
Data Modeling
Case Study
The Tale of the Too Wide Table
Summary
Chapter 3: Data Collecting
System Boundaries Identification
Document Gathering
Interviews
Data Collected for our Case Study
Summary
Chapter 4: Data Naming
Data Cleaning
Subdividing Data Elements
Data that are Results
Data as a Column's or Table's Name
Planning for Changes
Naming Recommendations
Summary
Chapter 5: Data Grouping
Initial List of Tables
Rules for Table Layout
Improving the Structure
Validating the Structure
Summary
Chapter 6: Data Structure Tuning
Data Access Policies
Storage Engines
Performance
In-Column Data Encoding
Case Study's Final Structure
Summary
Chapter 7: Supplemental Case Study
Results from the Document Gathering Phase
Preliminary List of Data Elements
Tables and Sample Values
Airline System Data Schema
Sample Queries
Summary

What You Will Learn

  • Asking users the right questions to collect relevant data for the system you are building
  • Detecting bad structures
  • Sound data-naming techniques, for both table and column names
  • Modeling data with future growth in mind
  • Implementing security policies with data privileges and views
  • Tuning the structure for performanceProducing system documentation (data dictionary, relational schema)
  • Testing the model with appropriate SQL queries

In Detail

For most of us, setting up the database for an application is often an afterthought. While you don't need to be a professional database designer to create a working application, knowing a few insider tips and techniques can make both the process easier and the end result much more effective. This book doesn't set out to make you an expert in data analysis, but it does provide a quick and easy way to raise your game in this essential part of getting your application right.

Authors

Read More