C3P0连接池配置
C3P0的连接池配置以及MySQL8.0.20的配置
报错信息和问题:
由于学习中,遇到MySQL版本不同造成C3P0连接池连接超时问题,百度之后总结出相关配置文件:
九月 16, 2020 3:15:15 下午 com.mchange.v2.log.MLog
信息: MLog clients using java 1.4+ standard logging.
九月 16, 2020 3:15:16 下午 com.mchange.v2.c3p0.C3P0Registry
信息: Initializing c3p0-0.9.5.5 [built 11-December-2019 22:07:46 -0800; debug? true; trace: 10]
九月 16, 2020 3:15:16 下午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 3000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1hgef41ac15jzhpr18xeh5t|45ff54e6, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.cj.jdbc.Driver