s1991615 發表於 2026-2-6 00:01

請問為啥會出現這個阿

請問為啥會出現這個阿,是因為匯入資料庫時出現幾萬筆錯誤?
ERROR - Connections could not be acquired from the underlying database!
java.sql.SQLException: Connections could not be acquired from the underlying database!
      at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
      at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529)
      at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
      at com.lineage.DatabaseFactory.getConnection(Unknown Source)
      at com.lineage.server.datatables.sql.CharBuffTable.deleteMazu(Unknown Source)
      at com.lineage.server.datatables.lock.CharBuffReading.deleteMazu(Unknown Source)
      at com.lineage.server.GameServer.initialize(Unknown Source)
      at com.lineage.Server.main(Unknown Source)
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
      at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
      at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
      at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
      at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
      ... 6 more
ERROR - Connections could not be acquired from the underlying database!
java.sql.SQLException: Connections could not be acquired from the underlying database!
      at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
      at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529)
      at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
      at com.lineage.DatabaseFactory.getConnection(Unknown Source)
      at com.lineage.server.datatables.sql.CharBuffTable.deleteMazu(Unknown Source)
      at com.lineage.server.datatables.lock.CharBuffReading.deleteMazu(Unknown Source)
      at com.lineage.server.GameServer.initialize(Unknown Source)
      at com.lineage.Server.main(Unknown Source)
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
      at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
      at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
      at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
      at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
      ... 6 mor

opop9453 發表於 2026-2-6 01:10

兩個方向你測試看看
1. sql.properties 設定檔裡面有資料設定錯誤,例如 帳號、密碼、資料庫名稱等等
2. 你電腦安裝的 mysql 套件版本不對,移除後再重新安裝

s1991615 發表於 2026-2-6 17:20

opop9453 發表於 2026-2-6 01:10
兩個方向你測試看看
1. sql.properties 設定檔裡面有資料設定錯誤,例如 帳號、密碼、資料庫名稱等等
2. 你 ...

最後跟著AI完成了,感恩

leostyle81 發表於 2026-2-11 06:55

請問樓主怎麼解決的呢?
頁: [1]
查看完整版本: 請問為啥會出現這個阿