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.
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:
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With