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
STAND-102:Replace the embedded mysql with mariadb4j? #46
base: master
Are you sure you want to change the base?
Conversation
@sherrif10 did you test this? |
Have been testing it and landed into some error, however am trying to get them fixed |
Hey @dkayiwa , the unfortunate thing is that i cannot connect to the database server using the mariadb, do i need to add mariadb connectors in place of mysql connectors, thats seems to be challenging me because am thinking of it at a perspective of other files that depend on mysql, And i think the main idea is not completely run on mariadb, Any suggestion thanks |
pom.xml
Outdated
@@ -1,4 +1,4 @@ | |||
<project xmlns="http//maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
<project xmlns="http//maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
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.
@sherrif10 thanks for working on this,was this change important?
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.
Thats a minor change
pom.xml
Outdated
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-mxj-db-files-fixed</artifactId> | ||
<version>5.0.12-20170418</version> | ||
<groupId>ch.vorburger.mariaDB4j</groupId> |
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.
@sherrif10 introducing maria db dependency only cannot make us run on maria db,we also need the maria db connector
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.
Thanks @HerbertYiga, however mariadb can work fine with mysql connectors without even any modification
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.
@sherrif10 ohh yes,point noted.Could this be of use to you too https://mariadb.com/kb/en/mariadb-vs-mysql-compatibility/
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.
@dkayiwa shared that to me earlier thanks again @HerbertYiga
We can now run on mariaDB4J however testing it on standalone is still goin on |
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.
These are just some minor fixes.
pom.xml
Outdated
<liquibasePluginArtifactId>liquibase-maven-plugin | ||
</liquibasePluginArtifactId> |
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.
<liquibasePluginArtifactId>liquibase-maven-plugin | |
</liquibasePluginArtifactId> | |
<liquibasePluginArtifactId>liquibase-maven-plugin</liquibasePluginArtifactId> |
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.
Thanks for coming up for this, Are you suggesting i remove this
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.
No, just move it back to a single line like this: <liquibasePluginArtifactId>liquibase-maven-plugin</liquibasePluginArtifactId>
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.
ohhh thanks, let me do that
pom.xml
Outdated
<liquibaseDemoDataFileName>liquibase-demo-data.xml | ||
</liquibaseDemoDataFileName> | ||
<liquibasecielDataFileName>liquibase-ciel-data.xml | ||
</liquibasecielDataFileName> | ||
<liquibaseDemoDataFollowupFileName>liquibase-empty-changelog.xml | ||
</liquibaseDemoDataFollowupFileName> | ||
<liquibaseEmptyDbFollowupFileName>liquibase-empty-changelog.xml | ||
</liquibaseEmptyDbFollowupFileName> |
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.
<liquibaseDemoDataFileName>liquibase-demo-data.xml | |
</liquibaseDemoDataFileName> | |
<liquibasecielDataFileName>liquibase-ciel-data.xml | |
</liquibasecielDataFileName> | |
<liquibaseDemoDataFollowupFileName>liquibase-empty-changelog.xml | |
</liquibaseDemoDataFollowupFileName> | |
<liquibaseEmptyDbFollowupFileName>liquibase-empty-changelog.xml | |
</liquibaseEmptyDbFollowupFileName> | |
<liquibaseDemoDataFileName>liquibase-demo-data.xml</liquibaseDemoDataFileName> | |
<liquibasecielDataFileName>liquibase-ciel-data.xml</liquibasecielDataFileName> | |
<liquibaseDemoDataFollowupFileName>liquibase-empty-changelog.xml</liquibaseDemoDataFollowupFileName> | |
<liquibaseEmptyDbFollowupFileName>liquibase-empty-changelog.xml</liquibaseEmptyDbFollowupFileName> |
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.
Finished
pom.xml
Outdated
<liquibasePluginArtifactId>liquibase-plugin | ||
</liquibasePluginArtifactId> |
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.
<liquibasePluginArtifactId>liquibase-plugin | |
</liquibasePluginArtifactId> | |
<liquibasePluginArtifactId>liquibase-plugin</liquibasePluginArtifactId> |
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.
Finished
pom.xml
Outdated
<ciel.dictionary.openmrs.version>1.9.9 | ||
</ciel.dictionary.openmrs.version> |
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.
<ciel.dictionary.openmrs.version>1.9.9 | |
</ciel.dictionary.openmrs.version> | |
<ciel.dictionary.openmrs.version>1.9.9</ciel.dictionary.openmrs.version> |
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.
finished
pom.xml
Outdated
<liquibaseDemoDataFileName>liquibase-demo-data-18x.xml | ||
</liquibaseDemoDataFileName> | ||
<liquibasecielDataFileName>liquibase-ciel-data-18x.xml | ||
</liquibasecielDataFileName> | ||
<liquibaseDemoDataFollowupFileName>liquibase-rename-helper-tables-18x.xml | ||
</liquibaseDemoDataFollowupFileName> | ||
<liquibaseEmptyDbFollowupFileName>liquibase-rename-helper-tables-18x.xml | ||
</liquibaseEmptyDbFollowupFileName> |
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.
<liquibaseDemoDataFileName>liquibase-demo-data-18x.xml | |
</liquibaseDemoDataFileName> | |
<liquibasecielDataFileName>liquibase-ciel-data-18x.xml | |
</liquibasecielDataFileName> | |
<liquibaseDemoDataFollowupFileName>liquibase-rename-helper-tables-18x.xml | |
</liquibaseDemoDataFollowupFileName> | |
<liquibaseEmptyDbFollowupFileName>liquibase-rename-helper-tables-18x.xml | |
</liquibaseEmptyDbFollowupFileName> | |
<liquibaseDemoDataFileName>liquibase-demo-data-18x.xml</liquibaseDemoDataFileName> | |
<liquibasecielDataFileName>liquibase-ciel-data-18x.xml</liquibasecielDataFileName> | |
<liquibaseDemoDataFollowupFileName>liquibase-rename-helper-tables-18x.xml</liquibaseDemoDataFollowupFileName> | |
<liquibaseEmptyDbFollowupFileName>liquibase-rename-helper-tables-18x.xml</liquibaseEmptyDbFollowupFileName> |
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.
Finished
pom.xml
Outdated
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public | ||
</url> |
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.
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public | |
</url> | |
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url> |
|
||
|
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.
@@ -29,6 +32,7 @@ public static void main(String[] args) throws Exception { | |||
|
|||
for (int i = 0; i < args.length; i++) { | |||
ServerLauncherSocketFactory.shutdown(new File(args[i]), null); | |||
} | |||
} |
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.
} | |
} | |
} | ||
|
||
} |
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.
} | |
} | |
@@ -0,0 +1,3 @@ | |||
CREATE USER 'openmrs'@'%' IDENTIFIED BY 'test'; | |||
GRANT ALL PRIVILEGES ON openmrs.* to 'openmrs'@'%'; | |||
FLUSH PRIVILEGES; |
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.
FLUSH PRIVILEGES; | |
FLUSH PRIVILEGES; | |
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.
Finished, hope it looks fine now
dd8c7c0
to
99585aa
Compare
@@ -0,0 +1,35 @@ | |||
/** |
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.
thanks @sherrif10 |
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.
As linting mechanisms doesnot reccomend commented codes in production code. I reccomend removing the commented dependency and if need to consider that dependency in another scenario adding a complete documentation for that.
<scope>compile</scope> | ||
<!--This can combine all the newest driver to access all databases --> |
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 consider to remove this commented dependency.
Hi folks, I'm the author and maintainer of MariaDB4j. OpenMRS is an awesome project and community! Just wanted to say Hi. Hope MariaDB4j works great for you? I've just released a new version a few days ago. |
https://issues.openmrs.org/browse/STAND-102
cc @dkayiwa , i didnot entail to completely exclude mysql connectors since we cannot completely run on mariadb, we are to use mariadb in response to mysql, More suggestion will be appreciated thanks