Book description
With special focus on the next major release of MySQL, this resource provides a solid framework for anyone new to MySQL or transitioning from another database platform, as well as experience MySQL administrators. The high-profile author duo provides essential coverage of the fundamentals of MySQL database management—including MySQL’s unique approach to basic database features and functions—as well as coverage of SQL queries, data and index types, stores procedure and functions, triggers and views, and transactions. They also present comprehensive coverage of such topics as MySQL server tuning, managing storage engines, caching, backup and recovery, managing users, index tuning, database and performance monitoring, security, and more.
Table of contents
- Copyright
- About the Authors
- Credits
- Acknowledgments
- Introduction
-
I. First Steps with MySQL
- 1. Introduction to MySQL
-
2. Installing and Upgrading MySQL Server
- 2.1. Before Installation
- 2.2. Installation
- 2.3. Initial Configuration
-
2.4. MySQL Configuration Wizard on Windows
- 2.4.1. Detailed Configuration
- 2.4.2. The Server Type screen
- 2.4.3. Database Usage screen
- 2.4.4. InnoDB Tablespace screen
- 2.4.5. Concurrent Connections screen
- 2.4.6. Networking Options and Strict Mode Options screen
- 2.4.7. Character Set screen
- 2.4.8. Service Options screen
- 2.4.9. Security Options screen
- 2.4.10. Confirmation screen
- 2.5. MySQL Post-Install Configuration on Unix
- 2.6. Securing Your System
- 2.7. Windows PATH Variable Configuration
- 2.8. Upgrading mysqld
- 2.9. Troubleshooting
- 2.10. Summary
- 3. Accessing MySQL
-
II. Developing with MySQL
-
4. How MySQL Extends and Deviates from SQL
- 4.1. Learning MySQL Language Structure
- 4.2. Understanding MySQL Deviations
-
4.3. Using MySQL Extensions
- 4.3.1. Aliases
- 4.3.2. ALTER TABLE extensions
- 4.3.3. CREATE extensions
- 4.3.4. DML extensions
- 4.3.5. DROP extensions
- 4.3.6. The LIMIT extension
- 4.3.7. SELECT extensions
- 4.3.8. SELECT ... INTO OUTFILE/SELECT ... INTO DUMPFILE
- 4.3.9. SQL_SMALL_RESULT/SQL_BIG_RESULT
- 4.3.10. UNION ... ORDER BY
- 4.3.11. SELECT ... FOR UPDATE
- 4.3.12. SELECT ... LOCK IN SHARE MODE
- 4.3.13. DISTINCTROW
- 4.3.14. SQL_BUFFER_RESULT
- 4.3.15. HIGH_PRIORITY/LOW_PRIORITY
- 4.3.16. Server maintenance extensions
- 4.3.17. The SET extension and user-defined variables
- 4.3.18. The SHOW extension
- 4.3.19. Table definition extensions
- 4.3.20. Table maintenance extensions
- 4.3.21. Transactional statement extensions
- 4.4. Summary
-
5. MySQL Data Types
- 5.1. Looking at MySQL Data Types
- 5.2. Character String Types
- 5.3. National Character String Types
- 5.4. Binary Large Object String Types
- 5.5. Numeric Types
- 5.6. Boolean Types
- 5.7. Datetime Types
- 5.8. Interval Types
- 5.9. ENUM and SET Types
- 5.10. Choosing SQL Modes
- 5.11. Using NULL Values
- 5.12. Finding an Optimal Data Type for Existing Data
- 5.13. Summary
- 6. MySQL Index Types
-
7. Stored Routines, Triggers, and Events
- 7.1. Comparing Stored Routines, Triggers, and Events
-
7.2. Using Triggers
- 7.2.1. Creating a trigger
- 7.2.2. Dropping a trigger
- 7.2.3. Multiple SQL statements in triggers
- 7.2.4. Changing a trigger
- 7.2.5. Triggers on views and temporary tables
- 7.2.6. Trigger runtime behavior
- 7.2.7. Finding all triggers
- 7.2.8. Trigger storage and backup
- 7.2.9. Triggers and replication
- 7.2.10. Trigger limitations
-
7.3. Using Stored Routines
- 7.3.1. Performance implications of stored routines
- 7.3.2. Stored procedures vs. stored functions
- 7.3.3. Creating a stored routine
- 7.3.4. Invoking a stored procedure
- 7.3.5. Dropping a stored routine
- 7.3.6. Multiple SQL statements in stored routines
- 7.3.7. INOUT arguments to a stored procedure
- 7.3.8. Local variables
- 7.3.9. Stored routine runtime behavior
- 7.3.10. Options when creating routines
- 7.3.11. Creating a basic stored function
- 7.3.12. Full CREATE FUNCTION syntax
- 7.3.13. Invoking a stored function
- 7.3.14. Changing a stored routine
- 7.3.15. Naming: stored routines
- 7.3.16. Stored procedure result sets
- 7.3.17. Stored routine errors and warnings
- 7.3.18. Conditions and handlers
- 7.3.19. Stored routine flow control
- 7.3.20. Recursion
- 7.3.21. Stored routines and replication
- 7.3.22. Stored function limitations
- 7.3.23. Stored routine backup and storage
- 7.4. Using Cursors
-
7.5. Using Events
- 7.5.1. Turning on the event scheduler
- 7.5.2. Creating an event
- 7.5.3. Dropping an event
- 7.5.4. Multiple SQL statements in events
- 7.5.5. Start and end times for periodic events
- 7.5.6. Event status
- 7.5.7. Finding all events
- 7.5.8. Changing an event
- 7.5.9. After the last execution of an event
- 7.5.10. Event logging
- 7.5.11. Event runtime behavior
- 7.5.12. Event limitations
- 7.5.13. Event backup and storage
- 7.6. Summary
- 8. MySQL Views
- 9. Transactions in MySQL
-
4. How MySQL Extends and Deviates from SQL
-
III. Core MySQL Administration
- 10. MySQL Server Tuning
-
11. Storage Engines
- 11.1. Understanding Storage Engines
-
11.2. Using Different Storage Engines
- 11.2.1. MyISAM storage engine
-
11.2.2. InnoDB storage engine
- 11.2.2.1. Tablespace configuration variables
- 11.2.2.2. Performance configuration variables
- 11.2.2.3. SHOW ENGINE InnoDB STATUS
- 11.2.2.4. InnoDB tablespace management
- 11.2.2.5. Working with ibdata Files
- 11.2.2.6. Adding an additional ibdata file to a shared tablespace
- 11.2.2.7. Removing or reorganizing shared tablespace files
- 11.2.2.8. Moving from a shared tablespace file to per-table tablespace
- 11.2.2.9. InnoDB log files and crash recovery
- 11.2.3. MEMORY storage engine
- 11.2.4. Maria storage engine
-
11.2.5. Falcon storage engine
- 11.2.5.1. Architectural overview
- 11.2.5.2. Falcon configuration options
- 11.2.5.3. Performance optimization configuration
- 11.2.5.4. Transactional support configuration
- 11.2.5.5. Record cache configuration
- 11.2.5.6. Serial log configuration
- 11.2.5.7. Falcon tablespace management
- 11.2.5.8. Creating a new tablespace
- 11.2.5.9. Creating tables and indexes
- 11.2.6. PBXT storage engine
- 11.2.7. FEDERATED storage engine
- 11.2.8. NDB storage engine
- 11.2.9. Archive storage engine
- 11.2.10. Blackhole storage engine
- 11.2.11. CSV storage engine
- 11.3. Working with Storage Engines
- 11.4. Summary
- 12. Caching with MySQL
-
13. Backups and Recovery
- 13.1. Backing Up MySQL
- 13.2. Copying Databases to Another Machine
- 13.3. Recovering from Crashes
- 13.4. Planning for Disasters
- 13.5. Summary
- 14. User Management
- 15. Partitioning
- 16. Logging and Replication
- 17. Measuring Performance
-
IV. Extending Your Skills
-
18. Query Analysis and Index Tuning
-
18.1. Using EXPLAIN
- 18.1.1. EXPLAIN plan basics
-
18.1.2. Data access strategy
- 18.1.2.1. Full table scan
- 18.1.2.2. Full index scan
- 18.1.2.3. Partial index scan
- 18.1.2.4. Using more than one index
- 18.1.2.5. Looking up nonunique, nullable index values
- 18.1.2.6. Data access strategy for fulltext searching
- 18.1.2.7. Joining and looking up nonunique index values
- 18.1.2.8. Joins and unique index values
- 18.1.2.9. Looking up unique index values
- 18.1.2.10. Constant propagation
- 18.1.2.11. Retrieve at most one record from a system table
- 18.1.2.12. No Data accesss strategy
- 18.1.3. EXPLAIN plan indexes
- 18.1.4. Rows
- 18.1.5. Extra
- 18.1.6. Subqueries and EXPLAIN
- 18.1.7. EXPLAIN EXTENDED
- 18.2. EXPLAIN on Non-SELECT Statements
- 18.3. Other Query Analysis Tools
- 18.4. Optimizing Queries
- 18.5. Summary
-
18.1. Using EXPLAIN
- 19. Monitoring Your Systems
- 20. Securing MySQL
- 21. The MySQL Data Dictionary
-
22. Scaling and High Availability Architectures
-
22.1. Replication
- 22.1.1. One read slave
-
22.1.2. Promoting a new master
- 22.1.2.1. Gather information
- 22.1.2.2. Make sure the slave is caught up applying its relay logs
- 22.1.2.3. Stop and reset the slave process
- 22.1.2.4. Change configuration parameters
- 22.1.2.5. Restart
- 22.1.2.6. RESET MASTER
- 22.1.2.7. Change any remaining slaves to replicate off the new master
- 22.1.2.8. Slave promotion summary
- 22.1.3. Many read slaves
- 22.1.4. Master/master replication
- 22.1.5. Circular replication
- 22.2. SAN
- 22.3. DRBD
- 22.4. MySQL Proxy
- 22.5. Linux-HA Heartbeat
- 22.6. MySQL Cluster
- 22.7. Connection Pooling
- 22.8. memcached
- 22.9. Summary
-
22.1. Replication
- A. MySQL Proxy
- B. Functions and Operators
- C. Resources
-
18. Query Analysis and Index Tuning
Product information
- Title: MySQL® Administrator's Bible
- Author(s):
- Release date: May 2009
- Publisher(s): Wiley
- ISBN: 9780470416914
You might also like
book
MySQL® Administrator's Guide
If you are not already one of the 4 million plus users of the MySQL database, …
book
MySQL® Administrator’s Guide and Language Reference
<>Written by the creators of MySQL and edited by one of the most highly respected MySQL …
book
Microsoft® SQL Server 2005 Management and Administration
Microsoft SQL Server 2005 Management and Administration, based on Service Pack 2, addresses the challenges database …
article
Reinventing the Organization for GenAI and LLMs
Previous technology breakthroughs did not upend organizational structure, but generative AI and LLMs will. We now …