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.
Original issue reported on code.google.com by rock...@gmail.com on 4 Aug 2010 at 5:31
Original issue reported on code.google.com by
rock...@gmail.com
on 4 Aug 2010 at 5:31