MySQL 8.0 FAQ: C API, libmysql A.13 MySQL 8.0 FAQ: C API, libmysql Frequently asked questions about MySQL C API and libmysql. A.13.1. What is “MySQL Native C API” ? What are typical benefits and use cases? A.13.2. Which version of libmysql should I use? A.13.3. What if I want to use the “NoSQL” X DevAPI? A.13.4. How to I download libmysql? A.13.5. Where is the documentation? A.13.6. How do I report bugs? A.13.7. Is it possible to compile the library myself? Yes, you can download the libmysqlclient source code and compile it on your own. Here’s an example: $ git clone --depth 1 https://github.com/mysql/mysql-server  Please report any bugs or inconsistencies you observe to our Bugs Database. Select the C API Client as shown. See MySQL 8.0 C API Developer Guide. •Linux: The Client Utilities Package is available from the MySQL Community Server download page. •Repos: The Client Utilities Package is available from the Yum, APT, SuSE repositories. •Windows: The Client Utilities Package is available from Windows Installer. For C-language and X DevApi Document Store for MySQL 8.0, we recommend MySQL Connector/ C++. Connector/C++ 8.0 has compatible C headers. (This is not applicable to MySQL 5.7 or before.) For MySQL 8.0, 5.7, 5.6, and 5.5, we recommend libmysql 8.0. libmysql is a C-based API that you can use in C applications to connect with the MySQL database server. It is also itself used as the foundation for drivers for standard database APIs like ODBC, Perl’s DBI, and Python’s DB API. $ cd mysql-server  $ mkdir build $ cd build $ cmake .. -GNinja -DDOWNLOAD_BOOST=1 \ -DWITH_BOOST=/tmp -DCMAKE_BUILD_TYPE=Release -DWITHOUT_SERVER=ON \ -DWITH_SSL=system  $ ninja libmysqlclient.a  $ ls -la archive_output_directory/libmysqlclient.a  -rw-rw-r-- 1 kg kg 8,5M wrz 5 04:57 archive_output_directory/libmysqlclient.a 5269 A.13.1 What is “MySQL Native C API” ? What are typical benefits and use cases? ........................... 5269 A.13.2 Which version of libmysql should I use? ............................................................................. 5269 A.13.3 What if I want to use the “NoSQL” X DevAPI? .................................................................... 5269 A.13.4 How to I download libmysql? .............................................................................................. 5269 A.13.5 Where is the documentation? ............................................................................................. 5269 A.13.6 How do I report bugs? ....................................................................................................... 5269 A.13.7 Is it possible to compile the library myself? ......................................................................... 5269