Non GPL library that can connect to MySQL database?

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?

+4
source share
3 answers

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.

+1
source

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

+1
source

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:

+1
source

Source: https://habr.com/ru/post/1345941/


All Articles