Mattermost 仍在读取标准配置

Mattermost 仍在读取标准配置

我安装了 mattermost 并修改了 config.json,但仍然无法启动服务

{"timestamp":"2023-12-07 12:21:58.972 +01:00","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:259","error":"pq: password authentication failed for user \"mmuser\"","retrying in seconds":10}
{"timestamp":"2023-12-07 12:22:08.973 +01:00","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:251","database":"master","dataSource":"postgres://%2A%2A%2A%2A:%2A%2A%2A%2A@localhost/mattermost_test?binary_parameters=yes&connect_timeout=10&sslmode=disable"}
{"timestamp":"2023-12-07 12:22:08.985 +01:00","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:259","error":"pq: password authentication failed for user \"mmuser\"","retrying in seconds":10}
{"timestamp":"2023-12-07 12:22:18.986 +01:00","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:251","database":"master","dataSource":"postgres://%2A%2A%2A%2A:%2A%2A%2A%2A@localhost/mattermost_test?binary_parameters=yes&connect_timeout=10&sslmode=disable"}
{"timestamp":"2023-12-07 12:22:18.999 +01:00","level":"error","msg":"failed to initialize platform: cannot create store: error setting up connections: pq: password authentication failed for user \"mmuser\"","caller":"commands/server.go:76"}

我已经更改了“localhost”或“mattermost_test”条目……部分。我在配置中找不到“数据库”设置,我认为这是通过 DataSource 条目定义的。mattermost 在哪里读取这个?据我了解,我只需要调整 config.json。还有其他配置文件吗?

相关内容