Error with built in mysql driver for 3.8.2

I thought I would put this on here if anyone ran into this issue.

I built out an openfire 3.8.2 server using RHEL’s 6.4 with a mysql database on the back end. I started noticing that testing with the spark 2.6.3 client, I was getting the following errors in the error log:

  • org.jivesoftware.openfire.spi.PresenceManagerImpl - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘OPTION SQL_SELECT_LIMIT=DEFAULT’ at line 1
  1. com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘OPTION SQL_SELECT_LIMIT=DEFAULT’ at line 1

My group found out that the built in version of the MySQL driver that came with openfire was a little out of date so we replaced it with the mysql-connector-java-5.1.26 driver from Oracle and that seemed to take care of those errors.

I hope this helps others.

Thanks.