1. 程式人生 > >Openfire啟動時報資料庫連線錯誤

Openfire啟動時報資料庫連線錯誤

【問題描述】

2013.12.26 15:57:03 org.jivesoftware.openfire.XMPPServer - java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'openfire'

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: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'openfire'
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:770)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:486)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:216)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'openfire'
at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:151)
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:760)

... 16 more

【解決方案】 mysql中的openfire對應資料庫丟了,丟失原因未知

相關推薦

Openfire啟動時報資料庫連線錯誤

【問題描述】 2013.12.26 15:57:03 org.jivesoftware.openfire.XMPPServer - java.sql.SQLException: ConnectionManager.getConnection() failed to obta

使用Mysql8中的資料庫連線錯誤的解決辦法

錯誤日誌 這個問題的根本原因是資料庫連線池的版本過低,所以更新依賴 2018-11-10 11:06:40.441 ERROR 10575 --- [eate-2090142523] com.alibaba.druid.pool.DruidDataSource : create

解決Wordpress安裝時出現“資料庫連線錯誤”的問題

在安裝或者更新(手動離線)wordpress的時候,有可能出現“資料庫連線錯誤”的問題: 一開始看了很多人家修改檔案的教程,發現都不太靠譜,而且麻煩; 這裡推薦一種簡單的方法: 1、登陸本地phpadmin; 2、找到mysql(wordpress建立時使用的資料庫),點選

zookeeper叢集啟動時報Connection refused錯誤

zookeeper叢集啟動時報錯 Cannot open channel to 3 at election address zk03/192.168.128.103:3888 java.net.ConnectException: Connection refused    

【轉】IIS7.5安裝後ASP+access資料庫連線錯誤的問題解決辦法

0 推薦 第一步、安裝IIS。 開始——控制面板——程式和功能——開啟關閉Windows功能,找打Internet資訊服務然後打勾,記得要在應用程式開發功能裡勾選asp,和asp.net,然後找到Internet資訊服務上面的Internet information service 可承載web核心

Error while trying to retrieve text error CRA-12154 資料庫連線錯誤

Error while trying to retrieve text error CRA-12154 資料庫連線錯誤 Pl/SQL   連線資料庫  看ip地址 在PL/SQL中選擇Help-->Support Info... ->檢視DNS File C:\

kettle資料庫連線錯誤

錯誤連線資料庫 [test1] :org.pentaho.di.core.exception.KettleDatabaseException: Erroroccured while trying to connect to the database Excepti

Tomcat 伺服器啟動很慢,報資料庫連線不上,又參雜了其他專案的錯誤

       這幾天吃不好睡不好就是因為部署專案,啟動Tomcat報了連線不上資料庫(連線超時),我把ssh的幾個配置檔案重新看了好幾遍,我就納悶了,這到底是怎麼回事呀?我把錯誤資訊拿到網上查,一一看解決方案,幾乎都試了一遍還是報錯,心碎了!於是乎找群裡大神們問問,都建議叫我檢查程式碼,相關的配置檔案,可我之

啟動Tomcat時報這樣的錯誤——跟資料庫有關

2012-2-2 0:15:10 org.apache.catalina.core.AprLifecycleListener init 資訊: The APR based Apache Tomcat Native library which allows optimal p

linux啟動時報init錯誤;yum配置出錯

yum 配置出錯 結果:VMware虛擬機中的redhat6.7在開機過程中出現引導錯誤(init : Failed to spawn readahead-collector main process :unable to execute)並卡在redhat界面。無法進入單用戶模式。原因:在配置lin

PLSql連線Oracle資料庫錯誤提示

今天我安裝了Oracle資料庫,使用PLSql連線時 提示"no listener" 與      Ora-12514:tns:偵聽器目前不知道連線描述符中請求的服務 ;      還有在本地計算機無法啟動OracleOraHome

Tomcat啟動時報org.springframework.web.context.ContextLoaderListener錯誤解決方案

lean handler 轉載 現象 tail size enc fault new 問題現象:新從svn上檢出maven的項目maven+spring+springmvc項目在Tomcat啟動時,報如下錯誤。 嚴重: Error configuring appl

通過xstart啟動gnome桌面 連線時報錯:Can't open display: localhost:10.0

window用Xmanager4.0的Xstart連線linux遠端桌面 安裝包: xorg-x11-xauth xterm.x86_64 0:253-1.el6 Execute command path:/usr/bin/xterm   

jdbc連線mysql資料庫報時區錯誤和SSL連線錯誤

錯誤1:時區錯誤 報錯資訊: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value '?й???????' is unrecognized or represe

jdbc連線mysql時報時區設定錯誤解決方法

參考https://blog.csdn.net/zqb765720343/article/details/80076020,感謝分享。 jdbc連線mysql時報時區設定錯誤,提示相差8小時。 1、在mysql命令列模式下修改時區,經過嘗試發現,這種方法重啟mysql後就失效了,不是永久的。

Node.js實現對mysql資料庫的crud時報加密方式錯誤解決方案

本人在學習全棧開發過程中做一個Node的web專案在連線本地MySQL8.0版本的資料庫時,發現Navicat連線不上,它報了一個數據庫的加密方式導致連線不上的錯誤,錯誤如下: MySQL8.0版本的加密方式和MySQL5.0的不一樣,連線會報錯。 解決方法如下: 開啟mysql的命令列進入

關於資料庫連線報NullpointerException 錯誤的問題處理方法

public class Sql { Connection cnn=null; ResultSet rs=null; Statement stm=null; public void connection() { try{ //載入註冊SQLSever的J

解決本地SqlServer無法連線遠端伺服器資料庫錯誤10060

本地SqlServer 連不上伺服器的資料庫環境,錯誤資訊如下圖,折騰來折騰去,最終還是解決了 第一步   檢視伺服器本地埠是否已經開啟,檢視方法:首先向C:\Windows\System32資料夾新增 tcping.exe (點選下載)--->Win+R--->輸入cmd---

本地新建Mysql資料庫連線登入錯誤

一、場景描述: mac新安裝的資料庫,/usr/local/mysql/bin下用root使用者居然不讓連線登入,不瞭解Mysql的基礎許可權前真是一臉懵的 二、操作詳情 看到這裡我們知道root使用者應該是缺少localhost連線許可權 SELECT DIST

mysql 遠端連線 mySql資料庫10061錯誤問題

安裝完mysql後,此時只是本機訪問mysql,其他的任何機器都是無法訪問的,Navicat for mysql更是無法使用。 在服務端MySQL資料夾下找到my.ini檔案。修改bind-address=127.0.0.1 為 bind-address=0.0.0.0