MySQL Connector/C 6.1 distributions contain the header, library, and utility files necessary to build MySQL client applications that communicate with MySQL Server using the C API.
Distributions are available in binary and source formats. A binary distribution contains the header, library, and utility components discussed following, compiled and ready for use in writing client programs. A source distribution contains the source files required to produce the same headers, libraries, and utilities included in a binary distribution, but you compile them yourself.
MySQL Connector/C distributions include these components:
A set of
.h header files that C
applications include at compile time. These files are located
Static and dynamic libraries that C applications link to at
link time. These libraries are located in the
lib directory. The library names depend
on the library type and platform for which a distribution is
On Unix (and Unix-like) sytems, the static library is
libmysqlclient.a. The dynamic library
libmysqlclient.so on most Unix
Mac OS X.
On Windows, the static library is
mysqlclient.lib and the dynamic
distributions also include
libmysql.lib, a static import library
needed for using the dynamic library.
Windows distributions also include a set of debug
libraries. These have the same names as the nondebug
libraries, but are located in the
Utilities. MySQL Connector/C 6.1 includes the following utilities, located
bin directory. They are the same
as in MySQL Server distributions:
mysql_config displays flags needed to compile C applications to use MySQL Connector/C. This utility is a shell script and is included only for Unix systems. See mysql_config — Display Options for Compiling Clients.
my_print_defaults displays the options that are present in option groups within option files. See my_print_defaults — Display Options from Option Files.
perror displays error messages corresponding to error codes. See perror — Explain Error Codes.
MySQL Connector/C 6.0 distributions are similar to 6.1 distributions, with these exceptions:
Debug libraries, my_print_defaults, and perror are not included.
mysql_config is an executable program that is available on all platforms. However, this version of mysql_config is more limited than the shell script version in the types of information it can display.