C and MySQL

If you're using C to write MySQL database applications, you will need the C API to communicate with the MySQL server. Like all APIs, it is the lowest common denominator for passing instructions and information between your application and a MySQL database.

The C API is distributed with MySQL. Unlike other languages, such as Perl with its DBI, there is no need to download or install it separately.

The administrative clients that come with MySQL, such as the mysql client program, are written in C and based on this API. If you installed MySQL from source, you may be interested to look at the C code of these programs, which you'll find in your MySQL source directory, in mysql-VERSION/client.

With the advent of MySQL version 4, it is now ...

Get Sams Teach Yourself MySQL in 21 Days, Second Edition 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.