Redis Connection
# Redis Connection
Redis connection commands are primarily used to connect to the Redis service.
### Example
The following example demonstrates how a client connects to the Redis service with password authentication and checks if the service is running:
redis 127.0.0.1:6379> AUTH "password" OK redis 127.0.0.1:6379> PING PONG
* * *
## Redis Connection Commands
The following table lists the basic Redis connection commands:
| No. | Command & Description |
| --- | --- |
| 1 | (#) Verify if the password is correct |
| 2 | (#) Print a string |
| 3 | (#) Check if the server is running |
| 4 | (#) Close the current connection |
| 5 | (#) Switch to the specified database |
YouTip