报错信息如下
2019-09-15T11:04:53.989471000Z at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2019-09-15T11:04:53.989590000Z at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2019-09-15T11:04:53.989740000Z at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
2019-09-15T11:04:53.989857000Z at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
2019-09-15T11:04:53.989969000Z at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
2019-09-15T11:04:53.990086000Z at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
2019-09-15T11:04:53.990201000Z at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:91)
2019-09-15T11:04:53.990312000Z at com.mysql.cj.NativeSession.connect(NativeSession.java:152)
2019-09-15T11:04:53.990445000Z at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:955)
2019-09-15T11:04:53.990560000Z at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:825)
2019-09-15T11:04:53.990673000Z ... 37 more
2019-09-15T11:04:53.990807000Z Caused by: java.net.ConnectException: Connection refused (Connection refused)
2019-09-15T11:04:53.990920000Z at java.net.PlainSocketImpl.socketConnect(Native Method)
2019-09-15T11:04:53.991042000Z at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
2019-09-15T11:04:53.991154000Z at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
2019-09-15T11:04:53.991269000Z at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
2019-09-15T11:04:53.991397000Z at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2019-09-15T11:04:53.991513000Z at java.net.Socket.connect(Socket.java:589)
2019-09-15T11:04:53.991631000Z at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155)
2019-09-15T11:04:53.991761000Z at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:65)
2019-09-15T11:04:53.991876000Z ... 40 more
2019-09-15T11:04:53.991991000Z [ERROR]-[2019-09-15 19:04:53]-[org.b3log.solo.service.InitService:186]: Check tables failed, please make sure database existed and database configuration [jdbc.*] in local.props is correct [msg=Communications link failure
2019-09-15T11:04:53.992222000Z The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]
2019-09-15T11:05:03.031158000Z [INFO ]-[2019-09-15 19:05:03]-[org.b3log.solo.util.Markdowns:138]: [markdown-http] is not available, uses built-in [flexmark] for markdown processing. Please read FAQ section in user guide (https://hacpai.com/article/1492881378588) for more details.
2019-09-15T11:05:03.035021000Z [INFO ]-[2019-09-15 19:05:03]-[org.b3log.solo.SoloServletListener:99]: Solo is booting [ver=3.6.4, servletContainer=jetty/9.4.12.v20180830, os=Linux, isDocker=true, markdownHttpAvailable=false, pid=1, runtimeDatabase=MYSQL, runtimeMode=PRODUCTION, jdbc.username=root, jdbc.URL=jdbc:mysql://127.0.0.1:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC]
2019-09-15T11:05:03.054092000Z [INFO ]-[2019-09-15 19:05:03]-[com.zaxxer.hikari.HikariDataSource:110]: HikariPool-1 - Starting...
2019-09-15T11:05:04.263576000Z [ERROR]-[2019-09-15 19:05:04]-[com.zaxxer.hikari.pool.HikariPool:574]: HikariPool-1 - Exception during pool initialization.
2019-09-15T11:05:04.263807000Z com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
2019-09-15T11:05:04.264079000Z The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
2019-09-15T11:05:04.264209000Z at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
2019-09-15T11:05:04.264340000Z at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
2019-09-15T11:05:04.264479000Z at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:835)
2019-09-15T11:05:04.264609000Z at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:455)
2019-09-15T11:05:04.264752000Z at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240)
2019-09-15T11:05:04.264882000Z at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:199)
2019-09-15T11:05:04.265004000Z at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:136)
2019-09-15T11:05:04.265128000Z at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:369)
2019-09-15T11:05:04.265250000Z at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:198)
2019-09-15T11:05:04.265377000Z at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:467)
2019-09-15T11:05:04.265516000Z at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:541)
2019-09-15T11:05:04.265638000Z at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
2019-09-15T11:05:04.265779000Z at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
2019-09-15T11:05:04.265911000Z at org.b3log.latke.repository.jdbc.util.Connections.getConnection(Connections.java:206)
2019-09-15T11:05:04.266034000Z at org.b3log.solo.service.InitService.initTables(InitService.java:178)
2019-09-15T11:05:04.266159000Z at org.b3log.solo.service.InitService_$$_jvstecc_49._d7initTables(InitService_$$_jvstecc_49.java)
2019-09-15T11:05:04.266280000Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2019-09-15T11:05:04.266424000Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2019-09-15T11:05:04.266549000Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2019-09-15T11:05:04.266671000Z at java.lang.reflect.Method.invoke(Method.java:498)
2019-09-15T11:05:04.266816000Z at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:116)
2019-09-15T11:05:04.266941000Z at org.b3log.solo.service.InitService_$$_jvstecc_49.initTables(InitService_$$_jvstecc_49.java)
2019-09-15T11:05:04.267064000Z at org.b3log.solo.SoloServletListener.contextInitialized(SoloServletListener.java:106)
2019-09-15T11:05:04.267184000Z at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:952)
2019-09-15T11:05:04.267306000Z at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:558)
2019-09-15T11:05:04.267450000Z at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:917)
2019-09-15T11:05:04.267576000Z at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:370)
2019-09-15T11:05:04.267717000Z at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
2019-09-15T11:05:04.267844000Z at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
2019-09-15T11:05:04.267967000Z at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:847)
2019-09-15T11:05:04.268092000Z at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:287)
2019-09-15T11:05:04.268215000Z at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
2019-09-15T11:05:04.268336000Z at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
2019-09-15T11:05:04.268480000Z at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
2019-09-15T11:05:04.268602000Z at org.eclipse.jetty.server.Server.start(Server.java:416)
2019-09-15T11:05:04.269606000Z at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
2019-09-15T11:05:04.269784000Z at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
2019-09-15T11:05:04.269934000Z at org.eclipse.jetty.server.Server.doStart(Server.java:383)
2019-09-15T11:05:04.270062000Z at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
2019-09-15T11:05:04.270185000Z at org.b3log.solo.Starter.main(Starter.java:177)
2019-09-15T11:05:04.270309000Z Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
2019-09-15T11:05:04.270580000Z The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
2019-09-15T11:05:04.270720000Z at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2019-09-15T11:05:04.270850000Z at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2019-09-15T11:05:04.270971000Z at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2019-09-15T11:05:04.271094000Z at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2019-09-15T11:05:04.271222000Z at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
2019-09-15T11:05:04.271345000Z at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
2019-09-15T11:05:04.271487000Z at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
2019-09-15T11:05:04.271610000Z at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
2019-09-15T11:05:04.271751000Z at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:91)
2019-09-15T11:05:04.271878000Z at com.mysql.cj.NativeSession.connect(NativeSession.java:152)
2019-09-15T11:05:04.272002000Z at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:955)
2019-09-15T11:05:04.272124000Z at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:825)
2019-09-15T11:05:04.272246000Z ... 37 more
2019-09-15T11:05:04.272372000Z Caused by: java.net.ConnectException: Connection refused (Connection refused)
2019-09-15T11:05:04.272512000Z at java.net.PlainSocketImpl.socketConnect(Native Method)
2019-09-15T11:05:04.272635000Z at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
2019-09-15T11:05:04.272778000Z at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
2019-09-15T11:05:04.272904000Z at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
2019-09-15T11:05:04.273026000Z at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2019-09-15T11:05:04.273146000Z at java.net.Socket.connect(Socket.java:589)
2019-09-15T11:05:04.273270000Z at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155)
2019-09-15T11:05:04.273404000Z at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:65)
2019-09-15T11:05:04.273531000Z ... 40 more
2019-09-15T11:05:04.273655000Z [ERROR]-[2019-09-15 19:05:04]-[org.b3log.solo.service.InitService:186]: Check tables failed, please make sure database existed and database configuration [jdbc.*] in local.props is correct [msg=Communications link failure
2019-09-15T11:05:04.273943000Z The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
是不是没建库的原因?我依旧建好了,谢谢大家解答
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于