[Redis]ResponseError: Client sent AUTH, but no password is set

Posted milian0711

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Redis]ResponseError: Client sent AUTH, but no password is set相关的知识,希望对你有一定的参考价值。

由于在代码中给redis添加了密码,如下

redis_store = redis.Redis(host=localhost, port=6379, db=4, password=root)

然而redis.conf中并没有设置密码,因此报ResponseError: Client sent AUTH, but no password is set

解决方法:将password字段去除即可 

以上是关于[Redis]ResponseError: Client sent AUTH, but no password is set的主要内容,如果未能解决你的问题,请参考以下文章