New issue 298 by rocklob: redis-cli "Error setting DB num" when
authentication (-a) specified
http://code.google.com/p/redis/issues/detail?id=298
What steps will reproduce the problem?
1. Configure redis with these options:
requirepass password
databases 16
2. Start redis-server
3. Attempt to use redis-cli while specifying a database number other than
0. Example:
redis-cli -n 1 -a password info
What is the expected output? What do you see instead?
Output of info command should be shown. Instead, you will see:
Error setting DB num
Error setting DB num
What version of the product are you using? On what operating system?
Redis 1.2.6 on 64-bit RedHat EL 5.
Please provide any additional information below.
In redis-cli.c, cliSendCommand() tries to call selectDb before it
issues the AUTH command.
Comment #1 on issue 298 by antirez: redis-cli "Error setting DB num" when
authentication (-a) specified
http://code.google.com/p/redis/issues/detail?id=298
(No comment was entered for this change.)
Comment #2 on issue 298 by antirez: redis-cli "Error setting DB num" when
authentication (-a) specified
http://code.google.com/p/redis/issues/detail?id=298
Just fixed in Redis-master.
Cheers,
Salvatore