openfire启动时报错

openfire 启动时报错 ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.

java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.
    at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:820)
    at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:543)
    at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:163)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at java.lang.Class.newInstance(Class.java:442)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:102)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:53)

    Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.
        at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:152)
        at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:810)
        ... 9 more
    Error starting the server. Please check the log files for more information.
    Server halted

原因:

之前本地使用mysql 5.7更新到mysql 8.0 ,我想连接内网做测试,又重新编译openfire,可是数据库的配置信息已经存在。 查看targer/openfire/conf/openfire.xml配置文件的配置信息,修改即可。

转载于:https://my.oschina.net/lwenhao/blog/1944641

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值