cloudreve / Cloudreve

🌩支持多家云存储的云盘系统 (Self-hosted file management and sharing system, supports multiple storage providers)

Home Page:https://cloudreve.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

环境变量

czjdr opened this issue · comments

有添加数据库(比如MySQL)环境变量的字母吗?保存账密数据的,保存设置里已经设置好的数据,因为ren每次重启,数据会被重置

Type = mysql
; MySQL 端口
Port = 3306
; 用户名
User = 用户名
; 密码
Password = 密码
; 数据库地址
Host = 127.0.0.1
; 数据库名称
Name = v3
; 数据表前缀
TablePrefix = cd
; 字符集
Charset = utf8 这些环境变量全都加进去了,但是没用
日志是 Initializing database connection...
[Info] 2024-03-01 14:45:23 Start initializing database schema...
[Warning] 2024-03-01 14:45:24 更新检查失败, json: cannot unmarshal object into Go value of type []bootstrap.GitHubRelease Admin user name: admin@cloudreve.org
[Info] 2024-03-01 14:45:25 Admin password: CBvGrQ1Q
[Info] 2024-03-01 14:45:28 Start executing database script "UpgradeTo3.4.0".
[Info] 2024-03-01 14:45:28 Finish initializing database schema. Initialize task queue with WorkerNum = 10
[Info] 2024-03-01 14:45:28 Initialize crontab jobs...
[Info] 2024-03-01 14:45:28 Current running mode: Master.
[Info] 2024-03-01 14:45:28 Listening to ":5212"