Can someone please help me on setting up Apache Isis to work with MySQL. I tried to set MySQL database but it doesn't work.
isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionDriverName=com.mysql.jdbc.Driver
isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionURL=jdbc:mysql://<host>/<database>
isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionUserName=<username>
isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionPassword=<pass>
With this I am getting this errors
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax;
I had the same exception. In my case, it was an issue with the DB server. I am using XAMPP with the included MariaDB server (which is a fork of MySQL and should be a binary drop-in replacement for MySQL).
So, if you use MariaDB instead of MySQL, you can try the following steps:
Add the
mariadb-java-clientartifact to the dependency list in thepom.xmlfile (of your webapp project if you have split up your project).Update the connection driver name and URL scheme (e.g. in the file
isis.properties):Maybe that helps you...