Search code examples
redis

Redis-cli with password


I am using redis and trying to open CLI of redis using this:

$redis-cli -h 127.0.0.1 -p 6379 -a mysupersecretpassword

and getting and error :

(error) NOAUTH Authentication required

why so ?


Solution

  • If you have a '$' in your password then it won't work. So set the password without the "$".