MySQL Forums
Forum List  »  Connector/C (libmysql)

FAQ: MySQL Connector/C; MySQL Native C API; libmysql; libmysqld
Posted by: Jim Winstead
Date: April 02, 2009 03:30PM

Q1: What is "MySQL Native C API"? What are typical benefits / use cases?

Connector/C (also known as libmysql) is a C-based API that you can use in C applications to connect with the MySQL database server. It implements the same MySQL client API that has been in use for a decade.

It is also itself used as the foundation for drivers for standard database APIs like ODBC, Perl's DBI, and Python's DB API.

Q2: What is "libmysql"?

libmysql is the name of the library that Connector/C provides.

Q3: What is "libmysqld"?

libmysqld is an embedded database server with the same API as Connector/C (libmysql). It is distributed as part of the MySQL server distribution.

Q4: What is "Connector/C"?

Connector/C is a standalone distribution of the libmysql library, which was previously only available as part of the server distribution. The version of libmysql included in Connector/C and bundled with the server are functionally identical, but the build system for Connector/C uses the cross-platform CMake build system.

Q5: What is the difference between "Native C API" and "libmysql" and "libmysqld" and "Connector/C"?

Connector/C and libmysql are the native C API for MySQL, and all three terms can be used interchangeably. libmysqld is the embedded version of the MySQL server, and is included in the server distribution.

Q6: Does Connector/C replace any of "Native C API" and "libmysql" and "libmysqld"?

Connector/C contains libmysql, and implements a native C API. It does not include libmysqld, which can be found with the MySQL server distribution.

Edited 1 time(s). Last edit at 04/02/2009 04:51PM by Jim Winstead.

Options: ReplyQuote

Written By
FAQ: MySQL Connector/C; MySQL Native C API; libmysql; libmysqld
April 02, 2009 03:30PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.