美文网首页
Jforum2.5 + mysql 8 安装问题踩坑

Jforum2.5 + mysql 8 安装问题踩坑

作者: 浪花三朵 | 来源:发表于2019-03-17 19:18 被阅读0次

pom.xml 文件修改

路径为 D:\Program Files\Tomcat9\webapps\jforum\META-INF\maven\net.jforum\jforum 中找到pom.xml ,将 mysql-connector-java 版本修改为 8.0.12

mysql.properties 文件修改

路径为:D:\Program Files\Tomcat9\webapps\jforum\WEB-INF\config\database\mysql
下面代码是修改后的,直接复制替换即可

database.connection.string=jdbc\:mysql\://${database.connection.host}\:${database.connection.port}/${database.connection.dbname}?user\=${database.connection.username}&password\=${database.connection.password}&autoReconnect\=true${mysql.unicode}${mysql.encoding}&useNewIO\=false&zeroDateTimeBehavior\=CONVERT_TO_NULL&useServerPrepStmts\=false&dumpQueriesOnException\=true&jdbcCompliantTruncation\=false&useSSL\=false&serverTimezone\=GMT

注意修改后为:zeroDateTimeBehavior=CONVERT_TO_NULL
末尾添加了 serverTimezone=GMT

mysql.encoding=database.connection.driver=com.mysql.cj.jdbc.Driver

希望可以解决你的问题!!欢迎点赞 0.0

相关文章

网友评论

      本文标题:Jforum2.5 + mysql 8 安装问题踩坑

      本文链接:https://www.haomeiwen.com/subject/pstpmqtx.html