虽然openfire提供了供用户使用的数据库,但是我们还是需要用到自己的数据库做一些处理,比如消息推送的接收对象。下面我主要针对我遇见的项目,做一些简单说明。
我们主要是在Openfire数据库中修改Ofproperty表中的服务器信息:
1.下面这些是需要自己添加上的:
jdbcAuthProvider.passwordSQL select id from table where id=?
jdbcAuthProvider.passwordType plain
jdbcAuthProvider.useConnectionProvider true
jdbcProvider.connectionString jdbc:mysql://192.168.1.176:3306/datebase?user=root&password=root
jdbcProvider.driver com.mysql.jdbc.Driver
jdbcUserProvid