English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis Auth command is used to check if the given password matches the password in the configuration file.
Basic Syntax of Redis Auth Command is as follows:
redis 127.0.0.1:6379> AUTH PASSWORD
>= 1.0.0
Returns OK when the password matches, otherwise returns an error.
redis 127.0.0.1:6379> AUTH PASSWORD (error) ERR Client sent AUTH, but no password is set redis 127.0.0.1:6379> CONFIG SET requirepass "mypass" OK redis 127.0.0.1:6379> AUTH mypass Ok