-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Switch to the mariadb connector from the mysql one. #4746
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with the changes in principle but as I'm not to knowledgeable about this part of our ecosystem, I leave the decision to the other @JabRef/developers.
Please also add a changelog entry.
build.gradle
Outdated
@@ -98,7 +98,7 @@ dependencies { | |||
compile 'org.apache.pdfbox:pdfbox:2.0.14' | |||
compile 'org.apache.pdfbox:fontbox:2.0.14' | |||
compile 'org.apache.pdfbox:xmpbox:2.0.14' | |||
|
|||
compile group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.4.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please group this with the other db-related dependencies (mysql/postgre).
Can the mysql dependency be deleted now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do.
3c0fa0e
to
a0119a2
Compare
Hey @kiwiroy, thank you for this contribution! This will help us to judge upon the benefits and consequences of this change. |
I'm curious: Would it be possible to have both connectors e.g. MYSQL and MARIADB together so that a user can choose between them or does this create conflics? |
Just some comments here first: I'm unsure if this is relevant, but this blog has some background information. For the linked issue (#4745) the MySQL connector does not connect to the PAM The MariaDB implementations include a specific class for this. This StackOverflow thread pointed me to the MariaDB connector
It is possible to have the two resident in the class path concurrently. |
First pass at mysql and mariadb. Travis test suite passes and local testing of MariaDB connector against the database with PAM auth succeeds, while only changing the dropdown to MySQL results in the N.B. As the driver is the only difference I chose to reuse the MySQLProcessor class master...kiwiroy:concurrently#diff-30b9c551de374dcefae08e56aad3dec9R577 |
Yeah cool that it works! That would be best compromise here I think. |
Right... Should this PR be closed and a new one created - after a little tidy up? Also, any pointers on how this passed while including this line. |
Hm, that is really odd regarding the test. Try debugging the test locally or add a System.out.println before comparing the values to see the output You can either reuse this PR if you want or use the other PR. Whatever you want |
@kiwiroy What is the current status here? It would be really nice to have this inlcuded |
I’ve had a busy few weeks, will attend to it soon |
@kiwiroy any update? |
Closing due to inactivity. Feel free to reopen it if you have time to work on it. |
I resolved the conflicts and are going to merge it. I will add an ADR. We keep only MariaDB. Reason: MySQL Connector/J 8.0 is licensed under GPL. Source: https://downloads.mysql.com/docs/licenses/connector-j-8.0-gpl-en.pdf
I understand that there is that FOSS exception, but I am not aware of the consequences - and that exception is not commonly known. |
Switch from
com.mysql.cj.jdbc.Driver
toorg.mariadb.jdbc.Driver
.References
#4745
Checklist
Happy to work on these as required.