Sybex mastering MySQL 4 ISBN jan 2003 0782141625

1.2K 69 0
Sybex mastering MySQL 4 ISBN jan 2003 0782141625

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Mastering MySQL 4 by Ian Gilfillan Sybex © 2003 (729 pages) ISBN:0782141625 Your one-stop resource for all the information you need to create, maintain, use, and extend a MySQL database Table of Contents Mastering MySQL 4 Introduction Part I - Using MySQL Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 - Quickstart to MySQL - Data Types and Table Types - Advanced SQL Indexes and Query Optimization - Programming with MySQL - Extending MySQL Part II - Designing a Database Chapter 7 Chapter 8 Chapter 9 Understanding Relational Databases - Database Normalization - Database Design - Part III - MySQL Administration Chapter 10 - Basic Administration Chapter 11 - Database Backups Chapter 12 - Database Replication Configuring and Optimizing Chapter 13 - MySQL Chapter 14 - Database Security Chapter 15 - Installing MySQL Chapter 16 - Multiple Drives Part A - Appendixes Appendix A - MySQL Syntax Reference MySQL Function and Operator Appendix B Reference Appendix C - PHP API Appendix D - Perl DBI Appendix E - Python Database API Appendix F - Java API Appendix G - C API Appendix H - ODBC and NET Index List of Figures List of Tables List of Listings List of Sidebars Back Cover MySQL has proven it can compete with the big names in database management, such as SQL Server and Oracle, and with MySQL 4 this is truer than ever Mastering MySQL 4 is your one-stop resource for all the information you need to create, maintain, use, and extend a MySQL database It’s also essential reading for anyone developing database applications in a MySQL environment If you’re new to MySQL, this is a great way to get up and running—fast If you’re upgrading, it will help you get all you can out of new features and support Coverage Includes Installing MySQL Adding, removing, and updating records Choosing appropriate table types Choosing appropriate data types Optimizing MySQL queries Designing a database Normalizing table structure Maintaining and repairing databases Backing up and replicating data Managing user permissions and security Optimizing a MySQL server Extending MySQL Developing database applications About the Author Ian Gilfillan is lead developer for South Africa’s premier news portal, Independent Online He also has developed and taught technical courses on MySQL, databases, programming, and web development The author of many articles on databases and programming, and a developer of South Africa’s first online grocery store, Ian has been working with MySQL since 1997 Mastering MySQL 4 Ian Gilfillan Associate Publisher: Joel Fugazzotto Acquisitions and Developmental Editor: Tom Cirtin Freelance Editor: Kim Wimpsett Production Editor: Donna Crossman Technical Editor: Charlie Hornberger Graphic Illustrator: Tony Jonick Electronic Publishing Specialists: Rozi Harris, Bill Clark, Interactive Composition Corporation Proofreaders: Amey Garber, Emily Hsuan, Dave Nash, Laurie O'Connell, Yariv Rabinovitch, Nancy Riddiough, and Monique van den Berg Indexer: Nancy Guenther Book Designer: Maureen Forys, Happenstance Type-O-Rama Cover Designer: Design Site Cover Illustrator: Tania Kac, Design Site Copyright © 2003 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501 World rights reserved No part of this publication may be stored in a retrieval system, transmitted, or reproduced in any way, including but not limited to photocopy, photograph, magnetic, or other record, without the prior agreement and written permission of the publisher Library of Congress Card Number: 2002111957 ISBN: 0-7821-4162-5 SYBEX and the SYBEX logo are either registered trademarks or trademarks of SYBEX Inc in the United States and/or other countries Mastering is a trademark of SYBEX Inc Screen shots produced with SnagIt 6 Copyright 1995–2002 TechSmith Corporation All Rights Reserved TRADEMARKS: SYBEX has attempted throughout this book to distinguish proprietary trademarks from descriptive terms by following the capitalization style used by the manufacturer The author and publisher have made their best efforts to prepare this book, and the content is based upon final release software whenever possible Portions of the manuscript may be based upon pre-release versions supplied by software manufacturer(s) The author and the publisher make no representation or warranties of any kind with regard to the completeness or accuracy of the contents herein and accept no liability of any kind including but not limited to performance, merchantability, fitness for any particular purpose, or any losses or damages of any kind caused or alleged to be caused directly or indirectly from this book Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 Software License Agreement: Terms and Conditions The media and/or any online materials accompanying this book that are available now or in the future contain programs and/or text files (the "Software") to be used in connection with the book SYBEX hereby grants to you a license to use the Software, subject to the terms that follow Your purchase, acceptance, or use of the Software will constitute your acceptance of such terms The Software compilation is the property of SYBEX unless otherwise indicated and is protected by copyright to SYBEX or other copyright owner(s) as indicated in the media files (the "Owner(s)") You are hereby granted a single-user license to use the Software for your personal, noncommercial use only You may not reproduce, sell, distribute, publish, circulate, or commercially exploit the Software, or any portion thereof, without the written consent of SYBEX and the specific copyright owner(s) of any component software included on this media In the event that the Software or components include specific license requirements or end-user agreements, statements of condition, disclaimers, limitations or warranties ("End-User License"), those EndUser Licenses supersede the terms and conditions herein as to that particular Software component Your purchase, acceptance, or use of the Software will constitute your acceptance of such End-User Licenses By purchase, use or acceptance of the Software you further agree to comply with all export laws and regulations of the United States as such laws and regulations may exist from time to time Reusable Code in This Book The author(s) created reusable code in this publication expressly for reuse by readers Sybex grants readers limited permission to reuse the code found in this publication, its accompanying CD-ROM or available for download from our website so long as the author(s) are attributed in any application containing the reusable code and the code itself is never distributed, posted online by electronic transmission, sold, or commercially exploited as a stand-alone product Software Support Components of the supplemental Software and any offers associated with them may be supported by the specific Owner(s) of that material, but they are not supported by SYBEX Information regarding any available support may be obtained from the Owner(s) using the information provided in the appropriate read.me files or listed elsewhere on the media Should the manufacturer(s) or other Owner(s) cease to offer support or decline to honor any offer, SYBEX bears no responsibility This notice concerning support for the Software is provided for your information only SYBEX is not the agent or principal of the Owner(s), and SYBEX is in no way responsible for providing any support for the Software, nor is it liable or responsible for any support provided, or not provided, by the Owner(s) Warranty SYBEX warrants the enclosed media to be free of physical defects for a period of ninety (90) days after purchase The Software is not available from SYBEX in any other form or media than that enclosed herein or posted to www.sybex.com If you discover a defect in the media during this warranty period, you may obtain a replacement of identical format at no charge by sending the defective media, postage prepaid, with proof of purchase to: SYBEX Inc Product Support Department 1151 Marina Village Parkway Alameda, CA 94501 Web: http://www.sybex.com After the 90-day period, you can obtain replacement media of identical format by sending us the defective disk, proof of purchase, and a check or money order for $10, payable to SYBEX Disclaimer SYBEX makes no warranty or representation, either expressed or implied, with respect to the Software or its contents, quality, performance, merchantability, or fitness for a particular purpose In no event will SYBEX, its distributors, or dealers be liable to you or any other party for direct, indirect, special, incidental, consequential, or other damages arising out of the use of or inability to use the Software or its contents even if advised of the possibility of such damage In the event that the Software includes an online update feature, SYBEX further disclaims any obligation to provide this feature for any specific duration other than the initial posting The exclusion of implied warranties is not permitted by some states Therefore, the above exclusion may not apply to you This warranty provides you with specific legal rights; there may be other rights that you may have that vary from state to state The pricing of the book with the Software by SYBEX reflects the allocation of risk and limitations on liability contained in this agreement of Terms and Conditions Shareware Distribution This Software may contain various programs that are distributed as shareware Copyright laws apply to both shareware and ordinary commercial software, and the copyright Owner(s) retains all rights If you try a shareware program and continue using it, you are expected to register it Individual programs differ on details of trial periods, registration, and payment Please observe the requirements stated in appropriate files Copy Protection The Software in whole or in part may or may not be copy-protected or encrypted However, in all cases, reselling or redistributing these files without authorization is expressly forbidden except as specifically provided for by the Owner(s) therein For Superbabe and my parents! Acknowledgments This is my first book, but having written numerous articles, I thought a book would be like a big article A few hundred pages and many gray hairs later, I know the truth This book would never have been possible without the many people who helped me along the way First, thanks to Anique van der Vlugt for installing software, testing code, proofreading many of the chapters, and keeping the bed warm on those long, lonely nights Second, thanks to Bob Meredith for setting up a test server on short notice and constantly asking for more from the book Thanks also to Rushdi Salie and Web Factory for introducing me to MySQL all those years ago and to Pieter Claassen for his passion with Linux, MySQL, Python, and Perl long before it was fashionable Thanks to my employers IOL for not clock-watching too much while I wrote this book Thanks to Technical Editor Charlie Hornberger for some superb comments, and thanks to all those at Sybex who helped make the book what it is: Developmental Editor Tom Cirtin, who was first to bite and who acquired the book, Production Editor Donna Crossman, Editor Kim Wimpsett, Associate Publisher Joel Fugazzotto, Illustrator Tony Jonick for making sense of my scrawlings, Composition Coordinator Rozi Harris, and Compositor Bill Clark, as well as Proofreaders Amey Garber, Emily Hsuan, Dave Nash, Laurie O'Connell, Yariv Rabinovitch, Nancy Riddiough, and Monique van den Berg, and Indexer Nancy Guenther And, of course, thanks to MySQL AB for a great product Appendix A: MySQL Syntax Reference Table A.1: Privileges Table A.2: Variables You Set in a Nonstandard Way (continued) Appendix B: MySQL Function and Operator Reference Table B.1: Regular Expression Characters Table B.2: Date Format Specifiers Appendix F: Java API Table F.1: Connection Properties Table F.2: SQL Types and the Equivalent Set Methods Table F.3: SQL Types and Equivalent Get Methods Table F.4: SQL Types and the Equivalent Update Methods Appendix G: C API Table G.1: MYSQL Field Types Table G.2: Flags Table G.3: Macros Appendix H: ODBC and NET Table H.1: Connection Options Table H.2: Attribute and Associated value_pointer Contents Table H.3: The SQLDiagField diagnostic_identifier Argument Table H.4: The SQLGetEnvAttr attribute Argument Table H.5: The SQLGetStmt attribute Argument Table H.6: The operation Argument List of Listings Chapter 5: Programming with MySQL Listing 5.1: TOTALLY_IMPORTABLE.PHP Listing 5.2: DB.INC Listing 5.3: NOT_TOO_PORTABLE.PHP Listing 5.4: DB.INC Listing 5.5: PORTABLE.PHP Listing 5.6: TOTALLY_INFLEXIBLE_SELECT.PHP Listing 5.7: INFLEXIBLE_SELECT.PHP Listing 5.8: FLEXIBLE.PHP Listing 5.9: INFLEXIBLE_INSERT.PHP Listing 5.10: FLEXIBLE_INSERT.PHP Listing 5.11: WORK_THE_SCRIPT.PHP Listing 5.12: WORK_THE_DB.PHP Listing 5.13: WORK_THE_SCRIPT2.PHP Listing 5.14: WORK_THE_DB2.PHP Listing 5.15: WORK_THE_SCRIPT3.PHP Listing 5.16: WORK_THE_DB3.PHP Listing 5.17: WORK_THE_DB3_2.PHP Chapter 6: Extending MySQL Listing 6.1: count_vowels.cc Listing 6.2: count_agg_vowels.cc Appendix D: Perl DBI Listing D.1: example.pl Appendix E: Python Database API Listing E.1: example.py Appendix F: Java API Listing F.1: InsertSelect.java Appendix G: C API Listing G.1: example.c Appendix H: ODBC and NET Listing H.1: dbnet.vb Listing H.2: dbnet.cs Listing H.3: dbado.vb Listing H.4: dbrdo.vb Listing H.5: dbdao.vb List of Sidebars Chapter 15: Installing MySQL Compiling MySQL Optimally ... Library of Congress Card Number: 2002111957 ISBN: 0-7821 -41 62-5 SYBEX and the SYBEX logo are either registered trademarks or trademarks of SYBEX Inc in the United States and/or other countries Mastering is a trademark of SYBEX Inc... List of Sidebars Back Cover MySQL has proven it can compete with the big names in database management, such as SQL Server and Oracle, and with MySQL 4 this is truer than ever Mastering MySQL 4 is your one-stop resource for all.. .MySQL Chapter 14 - Database Security Chapter 15 - Installing MySQL Chapter 16 - Multiple Drives Part A - Appendixes Appendix A - MySQL Syntax Reference MySQL Function and Operator

Ngày đăng: 26/03/2019, 17:09

Mục lục

  • Table of Contents

  • BackCover

  • Mastering MySQL 4

  • Introduction

    • What Not to Expect from This Book

    • What Do You Need?

    • How to Use This Book

    • How to Contact the Author

    • Part I: Using MySQL

      • Chapter 1: Quickstart to MySQL

        • Understanding MySQL Basics

        • Connecting to the MySQL Server

        • Creating and Using Your First Database

        • Summary

        • Chapter 2: Data Types and Table Types

          • Exploring the Various Column Types

          • MySQL Options

          • Exploring the Various Table Types

          • Summary

          • Chapter 3: Advanced SQL

            • Operators

            • Advanced Joins

            • Adding Records to a Table from Other Tables with INSERT SELECT

            • More about Adding Records

            • More about Removing Records (DELETE and TRUNCATE)

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan