Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

mysql-connector-cpp #43

Closed
markD9 opened this issue Oct 14, 2016 · 11 comments
Closed

mysql-connector-cpp #43

markD9 opened this issue Oct 14, 2016 · 11 comments

Comments

@markD9
Copy link

markD9 commented Oct 14, 2016

It would be great to have this one available: https://github.com/mysql/mysql-connector-cpp

It's a C++ wrapper around the MySQL connectors.

@lasote
Copy link
Contributor

lasote commented Oct 22, 2016

Any os/compiler? Have you any experience about supported os's or compilers?

Thanks

@mintyc
Copy link

mintyc commented Oct 22, 2016

better to use the equivalent compatible one in mariadb as the license is more flexible

@icehockeystar
Copy link

it's official c++ connector from mysql. I would prefer to use it than some alternatives.

@lasote
Copy link
Contributor

lasote commented Nov 2, 2016

@icehockeystar What OS's would you use?

@icehockeystar
Copy link

@lasote Ubuntu Linux 16.04 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

@lasote
Copy link
Contributor

lasote commented Nov 3, 2016

Hi! I've uploaded some packages for Linux/gcc:
https://www.conan.io/source/mysql-connector-cpp/2.0.3/lasote/testing

For gcc versions > 5 is necessary to use the setting -s compiler.libcxx="libstdc++11", it doesn't link with libstc++ (don't know why yet).

You can see an example of use here: https://github.com/lasote/conan-mysql-connector-cpp/tree/testing/2.0.3/test_package

Any doubt or feedback is welcome! If you need any other configuration or OS support just write.

Note: Use --build missing option in conan install command, there is no precompiled binaries available for Boost library and libstdc++11.

@mintyc
Copy link

mintyc commented Nov 3, 2016

I should have said the reason for suggesting mariadb's connector instead was licensing.
Mysql's is GPL so 'infects' your code, whereas mariadbs is lgpl. IANAL

@icehockeystar
Copy link

hi again @lasote
thank you for your work. I just tested the dependency and I was able to build it into my code and it run.
Unfortunately, the 2.0.3 version of the connector is purposed only for Mysql Servers as of version 5.7 with some X plugin. I use the Mysql 5.6.x and I think there would be appropriate to use the version 1.1.x of the connector which is available in the branch https://github.com/mysql/mysql-connector-cpp/tree/1.1 Could you please build an artifact for the version too?

@jboalml
Copy link

jboalml commented Oct 24, 2018

I would like to bring the request for MariaDB connector (https://github.com/MariaDB/mariadb-connector-c) back to life after two years. I strongly agree with @mintyc that having a LGPL connector is more suitable for many applications since it does not force you to license your code under GPL (as long as you link it dynamically). Any efforts so far?

@Croydon
Copy link
Contributor

Croydon commented Oct 24, 2018

At Bincrafters we have https://github.com/bincrafters/conan-mysql-connector-c right now.

@jboalml MariaDB ist not the same so please open a new issue for this.

@Croydon
Copy link
Contributor

Croydon commented Nov 26, 2019

This should be closed in favour of conan-io/conan-center-index#374

@SSE4 SSE4 closed this as completed Nov 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants