Cover image for MySQL:  the complete reference
Title:
MySQL: the complete reference
Personal Author:
Publication Information:
New York : McGraw Hill, 2004
ISBN:
9780072224771

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010038100 QA76.73.S67 V54 2004 Open Access Book Book
Searching...

On Order

Summary

Summary

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.




Get comprehensive coverage of all the powerful new features of MySQL, one of the fastest--and free--relational databases in use today


Written in conjunction with the MySQL development team, this expert resource covers transactional integrity, disaster recovery, scalability, support for mobile users, Web-based and client/server programming, and much more.


Reviews 1

Library Journal Review

MySQL and PHP are perennially popular open-source companions for creating database-driven web sites. These guides cover MySQL, as well as its use with PHP and other languages. Web Database Applications goes beyond teaching particular functions to provide a general background in web database development, then describes how and why to use PHP and MySQL to accomplish the tasks described. Extensive appendixes cover the software's installment on multiple platforms, web protocols, a relational database case study, and other useful additions, while code samples are available online. Recommended for larger libraries. High Performance addresses intermediate to advanced users, walking them through ways to improve the reliability, scalability, and performance of larger MySQL applications. This nicely organized guide eschews how-to basics to address how MySQL works and provides real-world examples whenever possible. Explanations are clear and thorough, and the text supplies links to and explanations of several useful downloadable tools (some written by the authors). Highly recommended for medium and larger libraries. Complete Reference tries to be all things to all people, covering topics from an introduction to relational databases and installing and configuring MySQL to reference material for administrators, but is most appropriate for new and intermediate users. Sidebars and notes add info and link to additional resources, while a welcome thoroughness and clarity make this a good, basic purchase for all libraries. (c) Copyright 2010. Library Journals LLC, a wholly owned subsidiary of Media Source, Inc. No redistribution permitted. All rights reserved.


Table of Contents

Forewordp. xi
Acknowledgmentsp. xiii
Introductionp. xv
Part I Installation
1 Introduction to Databasesp. 3
The Big Picturep. 3
...And the Little Database that Couldp. 6
History and Evolutionp. 6
Featuresp. 7
Applicationsp. 11
Summaryp. 12
2 A Technical Tour of MySQLp. 13
An Overview of MySQL Architecturep. 13
Primary Subsystemsp. 13
Support Componentsp. 16
Subsystem/Component Interaction and Control Flowp. 16
The MySQL Enginep. 17
Connectivityp. 17
SQLp. 17
Data Integrityp. 19
Transactionsp. 19
Extensibilityp. 22
Symmetric Multiprocessing with MySQLp. 23
Securityp. 24
Replicationp. 25
Application Programming Interfacesp. 25
Add-On Toolsp. 26
Summaryp. 26
3 MySQL Installation and Configurationp. 27
Obtaining MySQLp. 27
Choosing Which Version to Installp. 28
Choosing Between Binary and Source Distributionsp. 28
Installing and Configuring MySQLp. 30
Installing and Configuring MySQL on UNIXp. 30
Installing and Configuring MySQL on Windowsp. 40
Testing MySQLp. 49
Post-Installation Stepsp. 51
Summaryp. 52
Part II Usage
4 SQL Basicsp. 55
A Brief History of SQLp. 55
An Overview of SQLp. 56
A (My)SQL Tutorialp. 57
Understanding an RDBMSp. 57
Creating a Databasep. 59
Adding Tablesp. 60
Adding Recordsp. 63
Removing and Modifying Recordsp. 64
Executing Queriesp. 65
Summaryp. 74
5 MySQL Data Typesp. 75
The Need and Rationale for Data Typesp. 75
MySQL Data Typesp. 76
Numeric Typesp. 77
String Typesp. 82
Date and Time Typesp. 85
Complex Typesp. 93
Data Type Selectionp. 97
Summaryp. 99
6 MySQL Operatorsp. 101
Arithmetic Operatorsp. 102
Comparison Operatorsp. 106
Logical Operatorsp. 119
Bit Operatorsp. 122
Summaryp. 125
7 MySQL Functionsp. 127
Math Functionsp. 128
Aggregate Functionsp. 133
String Functionsp. 137
Date and Time Functionsp. 144
Encryption Functionsp. 153
Control Flow Functionsp. 157
Formatting Functionsp. 162
Type Conversion Functionsp. 164
System Information Functionsp. 166
Summaryp. 171
8 Working with Databases and Tablesp. 173
Creating Databasesp. 173
Selecting Databases for Usep. 175
Deleting Databasesp. 176
Creating Tablesp. 176
Field Typesp. 177
Field Constraintsp. 177
Indexesp. 180
Primary Keysp. 186
Foreign Keysp. 187
Table Typesp. 196
Other Table Modifiersp. 199
Copying Tablesp. 200
Modifying Tablesp. 204
Deleting Tablesp. 209
Obtaining Information About Databases, Tables, Fields, and Indexesp. 209
Summaryp. 210
9 Working with Datap. 213
Inserting, Updating, and Deleting Recordsp. 213
Inserting Recordsp. 213
Updating Recordsp. 220
Deleting Recordsp. 223
Retrieving Recordsp. 226
Retrieving Specific Rows and Columnsp. 227
Using Built-In Functionsp. 228
Aliasing Table and Column Namesp. 230
Limiting Query Resultsp. 230
Sorting Query Resultsp. 231
Grouping Query Resultsp. 233
Using Variablesp. 235
Using Subqueriesp. 236
Controlling SELECT Behaviorp. 237
Copying, Importing, and Exporting Recordsp. 239
Copying Recordsp. 239
Importing Recordsp. 241
Exporting Recordsp. 244
Summaryp. 247
10 Joinsp. 249
What Is a Join?p. 249
Types of Joinsp. 252
Cross Joinsp. 253
Inner Joinsp. 254
Outer Joinsp. 256
Self Joinsp. 262
Unionsp. 265
Summaryp. 267
11 Subqueriesp. 269
What Is a Subquery?p. 270
Types of Subqueriesp. 274
Subqueries and the Where/Having Clausep. 274
Subqueries and the From Clausep. 282
Subqueries and Joinsp. 284
Subqueries and Other DML Statementsp. 286
Summaryp. 290
12 Transactionsp. 291
What Is a Transaction?p. 292
Transactions and the ACID Propertiesp. 294
Life Cycle of a Transactionp. 296
Controlling Transactional Behaviorp. 300
Automatic Commitsp. 300
Transaction Isolation Levelsp. 302
Transactions and Performancep. 307
Pseudotransactions with Nontransactional Tablesp. 310
Table Locks as a Substitute for Transactionsp. 311
Implementing a Pseudotransaction with Table Locksp. 315
Summaryp. 316
Part III Administration
13 Administration and Configurationp. 319
Database Administration and MySQLp. 319
Uptimep. 320
Data Backupp. 320
Security and Access Controlp. 321
Performance Optimizationp. 321
Basic Server Administration and Configuration Tasksp. 322
Starting and Stopping the Serverp. 323
Checking MySQL Server Statusp. 326
Managing MySQL Client Processesp. 327
Altering the Server Configurationp. 328
Troubleshooting with the Error Logp. 333
Summaryp. 334
14 Security, Access Control, and Privilegesp. 335
The MySQL Grant Tablesp. 335
The user Tablep. 336
The db and host Tablesp. 340
The tables_priv and columns_priv Tablesp. 342
Granting, Revoking, and Viewing User Privilegesp. 345
Using the Grant and Revoke Commandsp. 346
Using the Insert, Update, and Delete Commandsp. 351
Viewing Privilegesp. 352
Reloading the Grant Tablesp. 352
Resetting the Grant Tablesp. 353
Changing User Passwordsp. 353
Setting the root Passwordp. 355
Resetting the root Passwordp. 355
Summaryp. 356
15 Maintenance, Backup, and Recoveryp. 357
Maintenancep. 357
Loggingp. 357
Checking and Repairing Tablesp. 361
Backup and Restorep. 365
Backing Up Databases and Tablesp. 365
Restoring Databases and Tables from Backupp. 367
Summaryp. 369
16 Performance Optimizationp. 371
Indexingp. 371
Query Cachingp. 374
Query Analysisp. 376
Optimizing Multi-Table Queriesp. 378
Using Temporary Tablesp. 380
Optimizing Table Designp. 381
Adjusting Server Settingsp. 382
Benchmarkingp. 383
Summaryp. 388
17 MySQL Replicationp. 389
Replication Basicsp. 389
The Master-Slave Relationshipp. 390
Replication Threadsp. 390
Configuring MySQL for Replicationp. 391
Managing the Replication Processp. 393
Summaryp. 398
Part IV Development
18 The MySQL APIsp. 401
The MySQL APIs In Contextp. 401
Components of the MySQL APIp. 402
Language Supportp. 403
Selecting an APIp. 405
Summaryp. 409
19 MySQL and Cp. 411
Cp. 411
History and Evolutionp. 411
Installationp. 412
MySQL and Cp. 412
Connection Managementp. 417
Query Executionp. 419
Result Set Processingp. 421
Error Handlingp. 429
Ancillary Functionsp. 431
Real-World Usagep. 433
The Interactive SQL Clientp. 433
The Expense Trackerp. 437
Summaryp. 443
20 MySQL and Perlp. 445
Perlp. 445
History and Evolutionp. 445
Installationp. 446
MySQL and the Perl DBIp. 447
Connection Managementp. 451
Query Executionp. 454
Result Set Processingp. 457
Error Handlingp. 461
Ancillary Functionsp. 465
A Real-World Examplep. 465
Designing the Databasep. 466
Building an Article Indexp. 468
Retrieving Article Contentsp. 470
Adding Commentsp. 473
Building a Threaded Comment Indexp. 477
Viewing Commentsp. 481
Summaryp. 484
21 MySQL and PHPp. 485
PHP: History and Evolutionp. 485
Installationp. 486
MySQL and PHPp. 488
Connection Managementp. 493
Query Executionp. 494
Result Set Processingp. 498
Error Handlingp. 505
Ancillary Functionsp. 505
A Real-World Examplep. 508
Designing the Databasep. 509
Retrieving Datap. 510
Adding Datap. 512
Removing Datap. 516
Summaryp. 520
Indexp. 521