MySQL, 2/e

Paul DuBois

  • 出版商: New Riders
  • 出版日期: 2003-01-27
  • 售價: $1,740
  • 貴賓價: 9.5$1,653
  • 語言: 英文
  • 頁數: 1248
  • 裝訂: Paperback
  • ISBN: 0735712123
  • ISBN-13: 9780735712126
  • 相關分類: MySQLSQL
  • 已過版



In the second edition of MySQL Paul DuBois provides an updated, comprehensive guide to one of the most popular relational database systems.

MySQL is the most popular open source database server in the world, with more than 2 million installations and customers including Yahoo!,, Motorola, and NASA.

MySQL 4.0, now generally available, is a long-awaited update to the database management system that has many new features, including a new table definition file format, enhanced replication, and more functions for a full text search.

Instead of giving readers merely an overview of MySQL 4.0, DuBois continues to include the most sought-after answers to the questions he hears most often from the community.

Table of Contents


1. Getting Started with MySQL and SQL.
How MySQL Can Help You. A Sample Database. Basic Database Terminology. A MySQL Tutorial. Tips for Interacting with mysql. Where to Now?

2. Working with Data in MySQL.
MySQL Data Types. MySQL Column Types. Working with Sequences. Character Set Support. Choosing Column Types. Expression Evaluation and Type Conversion.

3. MySQL SQL Syntax and Use.
MySQL Naming Rules. Selecting, Creating, Dropping, and Altering Databases. Creating, Dropping, Indexing, and Altering Tables. Getting Information about Databases and Tables. Retrieving Records from Multiple Tables. Multiple-Table Deletes and Updates. Performing Transactions. Foreign Keys and Referential Integrity. Using FULLTEXT Searches. Writing Comments. Features That MySQL Does Not Support.

4. Query Optimization.
Using Indexing. The MySQL Query Optimizer. Column Type Choices and Query Efficiency. Loading Data Efficiently. Scheduling and Locking Issues. Optimization for Administrators.


5. Introduction to MySQL Programming.
Why Write Your Own MySQL Programs? APIs Available for MySQL. Choosing an API.

6. The MySQL C API.
General Procedure for Building Client Programs. Client 1—Connecting to the Server. Client 2—Adding Error Checking. Client 3—Getting Connection Parameters at Runtime. Processing Queries. Client 4—An Interactive Query Program. Writing Clients That Include SSL Support. Using the Embedded Server Library. Miscellaneous Topics.

7. The Perl DBI API.
Perl Script Characteristics. Perl DBI Overview. Putting DBI to Work. Using DBI in Web Applications.

8. The PHP API.
PHP Overview. Putting PHP to Work.


9. Introduction to MySQL Administration.
Overview of Administrative Duties. General Administration. Security. Database Repair and Maintenance.

10. The MySQL Data Directory.
Location of the Data Directory. Structure of the Data Directory. Relocating Data Directory Contents.

11. General MySQL Administration.
Securing a New MySQL Installation. Arranging for MySQL Server Startup and Shutdown. Managing MySQL User Accounts. Maintaining Log Files. Additional Server Configuration Topics. Running Multiple Servers. Setting Up Replication Servers. Updating MySQL.

12. Security.
Internal Security: Preventing Unauthorized File System Access. External Security: Preventing Unauthorized Network Access. Setting Up Secure Connections.

13. Database Backups, Maintenance, and Repair.
Coordinating with the Server. Preparing for Disaster. Table Repair and Data Recovery.


Appendix A. Obtaining and Installing Software.
Obtaining the sampdb Sample Database Distribution. Obtaining MySQL and Related Software. Installing MySQL on UNIX. Installing MySQL on Windows.

Appendix B. Column Type Reference.
Numeric Types. String Types. Date and Time Types.

Appendix C. Operator and Function Reference.
Operators. Functions.

Appendix D. SQL Syntax Reference.
SQL Statements. SQL Variables. Comment Syntax.

Appendix E. MySQL Program Reference.
Specifying Program Options. libmysqld. myisamchk and isamchk. myisampack and pack_isam. mysql. mysqlaccess. mysqladmin. mysqlbinlog. mysqlbug. mysqlcheck. mysql_config. mysqld. mysqld_multi. mysqld_safe. mysqldump. mysqlhotcopy. mysqlimport. mysql_install_db. mysql.server. mysqlshow. safe_mysqld.

Appendix F. C API Reference.
Compiling and Linking. C API Data Types. C API Functions.

Appendix G. Perl DBI API Reference.
Writing Scripts. DBI Methods. DBI Utility Functions. DBI Attributes. DBI Environment Variables.

Appendix H. PHP API Reference.
Writing PHP Scripts. Functions.

Appendix I. Internet Service Providers.
Getting Ready to Shop for an ISP. Assessing an ISP—General Considerations. Assessing an ISP—MySQL-Specific Considerations.