Redis connection error: ERR Client sent AUTH, but no password is set

If a password is set in the redis.windows.conf or redis.conf (my configuration file) folder, but an error will be reported

ERR Client sent AUTH, but no password is set

 Open redis.windows.conf or redis.conf (mine is this configuration file) search field with Notepad and find that you have set a password

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

Find the folder corresponding to redis to delete the path, enter cmd and press Enter

 Enter the command, redis.conf (if it is redis.windows.conf, replace redis.conf with redis.windows.conf)

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

 Then there will be no error. Just re-run the project

おすすめ

転載: blog.csdn.net/weixin_43465508/article/details/131775564