Two options are provided for you to choose from
1-Modify the configuration file
1) In the redis installation directory (the directory where redis is extracted), open the file. Refer to the following figure
2) Search for requirepass in the open file
3) Set the password to 123456
2-Provide command line
Start the redis service before you begin, and then open a redis client program with redis-cli
1) View the current redis database password
config get requirepass
2) Set the password to 123456
// Password set to 123456 config set requirepass 123456
---------- if you encounter problems AUTH password
Finally and check your own set passwords
3-Verify that the password is valid
1) First use redis-cli to open a client program, and then use the ping command to test, prompting the need for authentication.
2) Useredis-cli -a 123456 Open a redis client program and test it with the ping command, which returns successful results.
3) Or use redis-cli and enter the auth password.
summarize
to this article on the Windows environment to view, add, modify the redis database password in two ways to this article, more related to Windows view add modify the redis password content please search my previous posts or continue to browse the following related articles I hope you will support me in the future!