I am looking for a C, C ++ or Objective-C library that can connect to a MySQL database. I know libmysqlclient (GPL) and SQLAPI ++ (non-GPL).
Are there any alternatives besides SQLAPI ++ that can be included in a project without a GPL?
iODBC is a BSD license and provides an ODBC client implementation.
The user can then install the MySQL Connector / ODBC to interact with the MySQL server.
Try SOCI or POCO . Both are under the Boost Software License .
EDIT: Indeed, you are right. And it looks like you are in a hot spot and will have to buy a MySQL license, at least according to the following
GPL and libmysqlclient
About MySQL ++, GPL, and LGPL
MySQL and GPL licensing
The MySQL C connector was used as an LGPL (thus allowing dynamic linking with proprietary code). Oracle has changed the license from LGPL to the GPL, starting with versions lower than 3.23.58.
To use the LGPL connector, you have the following options:
Source: https://habr.com/ru/post/1345941/More articles:How did C become standardized? - cCakePHP - Html-> link - why use controller => and action => instead of controller or action - phpHow to test the implementation of algorithms? - language-agnosticCreating multiple records in the same form with one model - No nested forms or anything else - ruby-on-rails-3Javascript: typeof and instanceof results contradict? - javascriptAutomatic "search" function when changing - rUsing a Template to Provide a Private Typedef - c ++Storage Base64 PNG in MySQL - mysqlCan tests be written in 3.5 MsTest Unit Test builds? - .net-3.5Deploy a C # + Linq console application? - c #All Articles