-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOAUTH Authentication required when use go-redis connect dragonfly #2462
Comments
I don't know the v8: if c.opt.Password != "" {
if c.opt.Username != "" {
pipe.AuthACL(ctx, c.opt.Username, c.opt.Password)
} else {
pipe.Auth(ctx, c.opt.Password)
}
} v9 first uses the |
If there are no more questions, we close this issue. |
xinzhanguo
added a commit
to xinzhanguo/go-redis
that referenced
this issue
Mar 9, 2023
monkey92t
added a commit
that referenced
this issue
Mar 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i want use go-redis/v9 to connect dragonfly (redis_version:df-v0.15.0, a db like redis), but i go a err : NOAUTH Authentication required.
but it ok when i use go-redis/v9 to connect my local redis,
and it also ok when i use go-redis/v8 to connect dragonfly.
this is a bug? why go-redis/v9 not support dragonfly with password?
`
var redisdb *redis.Client
redisdb = redis.NewClient(&redis.Options{
Addr: "127.0.0.1:6379", // 指定
Password: "1234",
DB: 2, // redis一共16个库,指定其中一个库即可
PoolSize: 2000,
})
t.Log(redisdb.Info(context.Background()))
`
The text was updated successfully, but these errors were encountered: