系统环境 :centos7.6 (阿里云)
docker-ce : 18.09.0
mysql :5.7
tomcat :9.0.14
jdk :1.8.0_191
docker images: centos:latest
solo.war :solo-2.9.8.war
端口映射
8080 --》 8080
3306 --》3306
测试地址:已解决
- latke.properties 配置文件如下所示:
Server
Browser visit protocol
serverScheme=http
Browser visit domain name
serverHost=doufy.vip
Browser visit port, 80 as usual, THIS IS NOT SERVER LISTEN PORT!
- serverPort=8080local.properties 配置文件如下所示
runtimeDatabase=MYSQL
jdbc.username=root
jdbc.password=密
jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.URL=jdbc:
catalina.out 中出现的 error 信息
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
[ERROR]-[2019-01-22 07:04:09]-[org.b3log.latke.repository.jdbc.JdbcRepository:801]: Gets a connection failed
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
[INFO ]-[2019-01-22 07:04:08]-[com.zaxxer.hikari.HikariDataSource:110]: HikariPool-1 - Starting...
[ERROR]-[2019-01-22 07:04:09]-[com.zaxxer.hikari.pool.HikariPool:574]: HikariPool-1 - Exception during pool initialization.
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于