Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Connector/J Replacement [closed]

Tags:

mysql

jdbc

gpl

I was wondering if there are any alternatives to using the MySQL Connector/J JDBC driver? Connector/J is licensed under a GPL license which will not work in my case. I like MySQL, but I also can not afford to pay the fees for becoming a partner (I read online somewhere it's about $600 a year).

I was hoping that there would be some other open-source driver online under a different license that I could use in my closed-source application, but haven't been able to find one.

If there's no replacement, then does anyone have any other databases they recommend? I'm thinking of switching to PostgreSQL.

like image 508
dev Avatar asked Mar 08 '12 17:03

dev


2 Answers

Drizzle provides a BSD licensed JDBC connector that can connect to MySQL.

Once you add the jar, all you need to do is use this as your driver:

org.drizzle.jdbc.DrizzleDriver

and this as your protocol:

mysql:thin

References:

  • http://kb.askmonty.org/en/mariadb-faq-is-there-any-java-connector-for-mariadb-than-the-one-from-mysql
  • http://wiki.drizzle.org/JDBC/ConnectionStrings
  • http://search.maven.org/#browse|889349485
like image 156
Spikeles Avatar answered Nov 11 '22 19:11

Spikeles


In the meantime, there is also a JDBC driver provided by the MariaDB team. It is licensed under the LGPL and is fully compatible with the official driver. Even the URL schema is the same: https://kb.askmonty.org/en/about-the-mariadb-java-client/

like image 26
Michael Avatar answered Nov 11 '22 17:11

Michael