Can connect only as default user
-
Hello,
I can connect from WordPress to Redis as default user, defined in redis.conf thusly:
#define( ‘WP_REDIS_USER’, ‘<user>’ );
#define( ‘WP_REDIS_PASSWORD’, ‘<password>’);
define( ‘WP_REDIS_PASSWORD’, ‘paessword’);When I comment the third line and un-comment the first two I cannot connect to the same Redis database. This error message appears in diagnostics:
Connection Exception: WRONGPASS invalid username-password pair or user is disabled. (RedisException)
Errors: [
“WRONGPASS invalid username-password pair or user is disabled.”
]However, I can connect with a PHP script that uses those same credentials:
<?php header('Content-type: text/plain'); $redis = new Redis(); //Connecting to Redis $redis->connect('<servername>', 6379); $redis->auth(['<user>', '<password>]); if ($redis->ping()) { echo "PONG\n"; } ?>IIRC, I was able to connect to Redis as a user I had defined in redis.conf. I don’t know what the cause of this error is.
How can I fix this?
The topic ‘Can connect only as default user’ is closed to new replies.