【问题描述】 如题
Openfire 3.8.2
MySql mysql-installer-community-5.6.12.0
【问题分析】
private Collection<String> getUsernames(int startIndex, int numResults) {
....
捕获如下异常 : 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=1' at line 1
原因系openfire自带的 jdbc驱动太低
【解决方案】
下载最新的 mysql-connector-java-gpl-5.1.29.msi(这里),安装并取出其mysql-connector-java-5.1.29-bin.jar,将该jar改名为mysql.jar,替换openfire中的对应文件