We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 178c660 commit 35c03eeCopy full SHA for 35c03ee
docs/config.md
@@ -74,14 +74,22 @@ spring:
74
75
### mysql配置参考
76
77
+```shell
78
+# 启动myql服务
79
+docker run --name mysql8 --restart=always -p 3306:3306 -e MYSQL_ROOT_PASSWORD=novice123 -d mysql:8.0.23
80
+# 连接mysql
81
+mysql -uroot -pnovice123
82
+# 创建数据库,字符编码需为utf8mb4
83
+create database `mj_proxy` character set utf8mb4 collate utf8mb4_bin;
84
+```
85
> 需要mysql8.0以上版本,注意用户名字段为 user
86
```yaml
87
spring:
88
datasource:
89
driver-class-name: com.mysql.cj.jdbc.Driver
90
url: jdbc:mysql://localhost:3306/mj_proxy?serverTimezone=Asia/Shanghai&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false
91
user: root
- password: novice@123
92
+ password: novice123
93
```
94
95
### mj.error-desc配置参考
0 commit comments