首页 > 数据库 >Caused by: io.lettuce.core.RedisCommandExecutionException: WRONGPASS invalid username-password pair

Caused by: io.lettuce.core.RedisCommandExecutionException: WRONGPASS invalid username-password pair

时间:2023-01-06 15:01:38浏览次数:41  
标签:username core WRONGPASS invalid lettuce io password

Redis连接报错RedisCommandExecutionException: WRONGPASS invalid username-password pair

一、问题描述
在 application.yml 中配置 Redis 连接信息如下:

Redis

redis:
host: 192.168.1.38
port: 6379
password: ‘!@abc123456’
1
2
3
4
5
编译时报错 RedisCommandExecutionException: WRONGPASS invalid username-password pair:

Caused by: io.lettuce.core.RedisCommandExecutionException: WRONGPASS invalid username-password pair
at io.lettuce.core.internal.ExceptionFactory.createExecutionException(ExceptionFactory.java:137)
at io.lettuce.core.internal.ExceptionFactory.createExecutionException(ExceptionFactory.java:110)
......
1
2
3
4
二、解决方法
password 的引号使用了中文引号!应使用英文引号!

Redis

redis:
host: 192.168.1.38
port: 6379
password: '!@abc123456'

标签:username,core,WRONGPASS,invalid,lettuce,io,password
From: https://www.cnblogs.com/Arborblog/p/17030506.html

相关文章