Comments (2)
also
docker pull b3log/symphony
docker run --detach --name sym --network=host \
--env RUNTIME_DB="MYSQL" \
--env JDBC_USERNAME="root" \
--env JDBC_PASSWORD="123456" \
--env JDBC_DRIVER="com.mysql.cj.jdbc.Driver" \
--env JDBC_URL="jdbc:mysql://127.0.0.1:3306/symphony?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC" \
b3log/symphony --listen_port=8080 --server_scheme=http --server_host=localhost --server_port=
when
mysql -u root -p
Enter password: 123456
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 8.1.0 Homebrew
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
But
[ERROR]-[2024-02-08 13:00:23]-[org.b3log.latke.repository.jdbc.util.JdbcRepositories:281]: Creates table [symphony_emotion] error
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
[ERROR]-[2024-02-08 13:00:24]-[org.b3log.latke.repository.jdbc.JdbcRepository:650]: Failed to initialize JDBC transaction
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
[ERROR]-[2024-02-08 13:00:24]-[org.b3log.symphony.service.InitMgmtService:690]: Initializes Sym failed
java.lang.IllegalStateException: Begin a transaction failed
at org.b3log.latke.repository.jdbc.JdbcRepository.beginTransaction(JdbcRepository.java:652) ~[latke-core-3.4.30.jar:?]
at org.b3log.latke.repository.AbstractRepository.beginTransaction(AbstractRepository.java:160) ~[latke-core-3.4.30.jar:?]
at org.b3log.symphony.service.InitMgmtService.initSym(InitMgmtService.java:250) [sym/:?]
at org.b3log.symphony.service.InitMgmtService_$$_jvst571_9b._d5initSym(InitMgmtService_$$_jvst571_9b.java) [sym/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:108) [latke-core-3.4.30.jar:?]
at org.b3log.symphony.service.InitMgmtService_$$_jvst571_9b.initSym(InitMgmtService_$$_jvst571_9b.java) [sym/:?]
at org.b3log.symphony.Server.main(Server.java:170) [sym/:?]
from symphony.
建议排查一下数据卷挂载是否正确。
from symphony.
Related Issues (20)
- 关于商业版和社区版 HOT 1
- 更新 Vditor 编辑器至 3.8.3
- 在标签树上点击多个标签时,无法实现切换,只是点一个加一个 HOT 1
- 支持RSS订阅 HOT 1
- 升级到 JDK 11
- Vditor 改为本地文件 HOT 1
- 移动端跳转到指定笔记 HOT 1
- docker
- 存储密码时使用安全 Hash 算法并加盐 HOT 1
- 更新前后端密码传递方式 HOT 1
- 对于文件所在合法目录判断上的缺陷 HOT 3
- 开发的时候没有热重载 HOT 12
- Find a trigger for log4j2 remote command execution in symphony 3.6.3 HOT 1
- npm run dev 和 npm run build 都没有用
- npm run dev/build都不能用 HOT 3
- 升级 "gulp-sass" 到 5.1.0, "node-sass" 到 9.0.0 HOT 1
- 博客如何配置ssl证书 HOT 1
- 发不出邮件 HTTPS反向代理报502错误 HOT 1
- 文件名在页面的显示问题! HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symphony.