How do I change between redis database?

redis

Solution

By default there are 16 databases (indexed from 0 to 15) and you can navigate between them using select command. Number of databases can be changed in redis config file with `databases` setting.

By default, it selects the database `0`. To select a specified one, use `redis-cli -n 2` (selects db 2)

Problem

I am new with redis and I didn't figured out how to create and change to another redis database. How do I do this?

Original source