求各位大佬教教我吧!
运行环境
CentOS 7.9.2009 x86_64
MySQL 8.0.24
使用的命令是./cloudreve
然后这样提示的
[Info] 2022-01-04 01:26:20 初始化数据库连接
[Panic] 2022-01-04 01:26:20 连接数据库不成功, Error 1044: Access denied for user '123'@'127.0.0.1' to database 'v3'
panic: 连接数据库不成功, Error 1044: Access denied for user '123'@'127.0.0.1' to database 'v3'
goroutine 1 [running]:
github.com/cloudreve/Cloudreve/v3/pkg/util.(*Logger).Panic(0xc00030cc20, 0x130ca00, 0x1c, 0xc0004efcd0, 0x1, 0x1)
/home/aaron/Backend-V3/pkg/util/logger.go:74 +0xe2
github.com/cloudreve/Cloudreve/v3/models.Init()
/home/aaron/Backend-V3/models/init.go:60 +0x1e7
github.com/cloudreve/Cloudreve/v3/bootstrap.Init.func3()
/home/aaron/Backend-V3/bootstrap/init.go:46 +0x20
github.com/cloudreve/Cloudreve/v3/bootstrap.Init(0xc000219810, 0xd)
/home/aaron/Backend-V3/bootstrap/init.go:103 +0x1fc
main.init.0()
/home/aaron/Backend-V3/main.go:22 +0x1f4
conf.ini是这样的
[Database]
Type = mysql
; MySQL 端口
Port = 3306
; 用户名
User = 123
; 密码
Password = *********
; 数据库地址
Host = 127.0.0.1
; 数据库名称
Name = v3
; 数据表前缀
TablePrefix = cd
; 字符集
Charset = utf8