redis 4.0.1 & redis 3.2.8 - ERR SELECT is not allowed in cluster mode

Created on 28 Aug 2017  路  1Comment  路  Source: redis/redis

I have installed redis 4.0.1 on macos sierra and created cluster running the following commands:
$ tar xzf redis-4.0.1.tar.gz
$ cd redis-4.0.1
$ make
$ make test
$ cd utils/create-cluster
$ ./create-cluster create
$ ./create-cluster start

I have connected to redis from redis-cli tool:
$ ./redis-cli -c -p 30001
127.0.0.1:30001> SELECT 4
(error) ERR SELECT is not allowed in cluster mode

When running in cluster mode, changing db is not supported. Is it an intended behaviour or it is a bug not fixed yet ?
The same situation exists for 3.2.8 redis.

Most helpful comment

That's intentional. Redis Cluster does not support multiple databases.

>All comments

That's intentional. Redis Cluster does not support multiple databases.

Was this page helpful?
0 / 5 - 0 ratings