djveremix / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

redis-cli "Error setting DB num" when authentication (-a) specified #298

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by anti...@gmail.com on 30 Aug 2010 at 1:33

GoogleCodeExporter commented 9 years ago
Just fixed in Redis-master.

Cheers,
Salvatore

Original comment by anti...@gmail.com on 30 Aug 2010 at 1:36