11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

www.it-ebooks.infoCHAPTER 25 • INTRODUCING MYSQL5.0 is proof of this commitment, with all of the aforementioned features now available (subqueries wereintroduced in version 4.1). Several subsequent chapters of this book are devoted to these relatively newfeatures.Full-Text Indexing and Searching<strong>MySQL</strong> has long supported full-text indexing and searching, a feature that greatly enhances theperformance of mining data from text-based columns. This feature also enables you to produce resultsin order of relevance in accordance with how closely the query matches the row’s indexed textualcolumns. This feature is covered in Chapter 36.Query CachingQuery caching is one of <strong>MySQL</strong>’s greatest speed enhancements. Simple and highly effective whenenabled, query caching allows <strong>MySQL</strong> to store SELECT queries, along with their corresponding results,in memory. As subsequent queries are executed, <strong>MySQL</strong> compares them against the cached queries; ifthey match, <strong>MySQL</strong> forgoes the costly database retrieval and instead dumps the cached query result. Toeliminate outdated results, mechanisms are built in to automatically remove invalidated cache resultsand re-cache them upon the next request.ReplicationReplication allows a database located within one <strong>MySQL</strong> server to be duplicated on another, whichprovides a great number of advantages. For instance, just having a single slave database in place cangreatly increase availability, because it can be brought online immediately if the master databaseexperiences a problem. If you have multiple machines at your disposal, client queries can be spreadacross the master and multiple slaves, considerably reducing the load that would otherwise be incurredon a single machine. Another advantage involves backups; rather than take your application offlinewhile a backup completes, you can instead execute the backup on a slave, avoiding any downtime.Security<strong>MySQL</strong> sports a vast array of security and configuration options, enabling you to wield total control overjust about every imaginable aspect of its operation. For example, with <strong>MySQL</strong>’s configuration optionsyou can control features such as the following:• The daemon owner, default language, default port, location of <strong>MySQL</strong>’s data store,and other key characteristics.• The amount of memory allocated to threads, the query cache, temporary tables,table joins, and index key buffers.• Various aspects of <strong>MySQL</strong>’s <strong>net</strong>working capabilities, including how long it willattempt to perform a connection before aborting, whether it will attempt toresolve DNS names, the maximum allowable packet size, and more.<strong>MySQL</strong>’s security options are equally impressive, allowing you to manage characteristics such as thefollowing:479

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!