Redis连接报错:ERR Client sent AUTH, but no password is set

如果在redis.windows.conf或者redis.conf(我的是这个配置文件)  文件夹中设置了密码,但是会报错

ERR Client sent AUTH, but no password is set

 用记事本打开redis.windows.conf或者redis.conf (我的是这个配置文件)搜索字段看一下,发现自己设置了密码

# requirepass foobared
requirepass 123456 //123456是设置的密码

找到redis对应的文件夹 删除路径,输入cmd回车

 输入一下命令,redis.conf    (如果是redis.windows.conf,就把redis.conf替换成redis.windows.conf)

D:\webproject\Redis\Redis>redis-server.exe redis.conf

 然后就不会报错了。重新运行一下项目就可以了

猜你喜欢

转载自blog.csdn.net/weixin_43465508/article/details/131775564