I ran this command to access my redis server.
telnet 127.0.0.1 6379
Now, I want to show all of my databases.
Please tell me this command.
Thanks.
I ran this command to access my redis server.
telnet 127.0.0.1 6379
Now, I want to show all of my databases.
Please tell me this command.
Thanks.
There is no command to do it (like you would do it with MySQL for instance). The number of Redis databases is fixed, and set in the configuration file. By default, you have 16 databases. Each database is identified by a number (not a name).
You can use the following command to know the number of databases:
You can use the following command to list the databases for which some keys are defined:
Please note that you are supposed to use the "redis-cli" client to run these commands, not telnet. If you want to use telnet, then you need to run these commands formatted using the Redis protocol.
For instance:
You can find the description of the Redis protocol here: http://redis.io/topics/protocol
Or you can just run the following command and you will see all databases of the Redis instance without firing up
redis-cli
: