Reputation: 5033
I'm looking for a C, C++, or Objective-C library that can connect to a MySQL database. I'm aware of libmysqlclient (GPL) and SQLAPI++ (non-GPL).
Are there any alternatives besides SQLAPI++ that can be included in a non-GPL project?
Upvotes: 5
Views: 4419
Reputation: 10947
The MySQL C connector used to be LGPL (thus, allowing dynamic linking to proprietary code). Oracle has changed the license from LGPL to GPL starting from versions later than 3.23.58.
To use a LGPL connector therefore you have the following options:
Upvotes: 4
Reputation: 5705
Try SOCI or POCO. Both are under the Boost Software License.
EDIT: Indeed you are right. And it seems you're in a hot spot and would have to buy a MySQL license, at least according to the following
Upvotes: 1
Reputation: 11840
iODBC is BSD-licensed, and provides an ODBC client implementation.
The user could then install the MySQL Connector/ODBC to interface with the MySQL server.
Upvotes: 1