首页 新闻 会员 周边 捐助

今天用jpress架网站,数据库连不上

0
[待解决问题]

数据库 mysql

网站程序是第三方程序,安装数据库时报了异常,

2016-10-24 00:15:17
[ERROR]-[Thread: http-nio-8080-exec-2]-[io.jpress.install.InstallController.step2()]: InstallController step2 is erro
java.sql.BatchUpdateException: Unknown character set: 'utf8mb4'
at com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:1184)
at com.alibaba.druid.filter.FilterChainImpl.statement_executeBatch(FilterChainImpl.java:2596)
at com.alibaba.druid.filter.FilterAdapter.statement_executeBatch(FilterAdapter.java:2474)
at com.alibaba.druid.filter.FilterEventAdapter.statement_executeBatch(FilterEventAdapter.java:279)
at com.alibaba.druid.filter.FilterChainImpl.statement_executeBatch(FilterChainImpl.java:2594)
at com.alibaba.druid.proxy.jdbc.StatementProxyImpl.executeBatch(StatementProxyImpl.java:192)
at com.alibaba.druid.pool.DruidPooledStatement.executeBatch(DruidPooledStatement.java:568)
at io.jpress.install.InstallUtils.executeBatchSql(InstallUtils.java:172)
at io.jpress.install.InstallUtils.createJpressDatabase(InstallUtils.java:117)
at io.jpress.install.InstallController.step2(InstallController.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.jfinal.aop.Invocation.invoke(Invocation.java:73)
at io.jpress.install.InstallInterceptor.intercept(InstallInterceptor.java:36)
at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
at io.jpress.core.interceptor.HookInterceptor.intercept(HookInterceptor.java:34)
at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
at io.jpress.interceptor.AdminInterceptor.intercept(AdminInterceptor.java:36)
at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
at io.jpress.interceptor.GlobelInterceptor.intercept(GlobelInterceptor.java:33)
at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
at io.jpress.core.interceptor.JI18nInterceptor.intercept(JI18nInterceptor.java:48)
at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
at com.jfinal.core.ActionHandler.handle(ActionHandler.java:74)
at io.jpress.core.MyDruidStatViewHandler.handle(MyDruidStatViewHandler.java:43)
at io.jpress.core.cache.ActionCacheHandler.handle(ActionCacheHandler.java:40)
at io.jpress.core.JHandler.handle(JHandler.java:81)
at io.jpress.core.cache.ActionCacheHandler.handle(ActionCacheHandler.java:40)
at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

按照别人的说法是 mysql 驱动 5.5 以后改成 utf8mb4编码了

我就把驱动改成了mysql5.5 更早版本的驱动,可是问题依旧。

况且 我以前自己写程序用任意版本的驱动连接数据库好好滴额。我这应该怎么做,

请各位大神赐教。。。。。小弟谢过了、

笑捻春风的主页 笑捻春风 | 初学一级 | 园豆:100
提问于:2016-10-24 00:41
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册