6. Introduction to MySQL Programming

This chapter describes some of the reasons for writing your own MySQL-based programs rather than using the standard client programs included in MySQL distributions. It also gives a conceptual overview of the interfaces we’ll use for the three languages covered in the following chapters (C, Perl, and PHP), and discusses factors to consider when choosing a language for a program.

6.1. Why Write Your Own MySQL Programs?

MySQL distributions include a set of client programs. For example, mysqldump exports table definitions and contents, mysqlimport loads data files into tables, mysqladmin performs administrative operations, and mysql lets you interact with the server to execute arbitrary SQL statements.

The standard ...

Get MySQL® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.