-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SELECT
failed: ERR invalid DB index BUG db is db0
#390
Comments
I don't use Laravel so I don't know what it does under the hood to configure Predis but setting |
@luoxun I just had a similar issue with laravel. When specifying the index, make sure to put the |
I know I'm bumping a old thread, but for me setting |
Finally figured it out. not sure I understand though. I'musing docker links, and naming my redis server : But then I ried using just the I finally commented out
|
THANKYOU!!! it work! |
in .env file just add the following and it works |
You saved my day |
This worked for me thanks. |
Thank you so much.. :) |
+1 for adding REDIS_CACHE_DB equal to zero in the .env file (I'm using Heroku) If anyone could explain why this would be the case, I'd be curous. |
This worked for me in Laravel Version 7 and redislab free plan |
Setting the |
Brilliant. In my understanding, the value of REDIS_CACHE_DB just points to a name that should be used for the database. Therefore, any value at all should work, not just 0 |
we are using laravel predis , but now we are having a problem as follow:
SELECT
failed: ERR invalid DB indexI use command line to connect ,it works fine, I use db0, set and get work fine;
but in laravel predis ,when i use db 0, got a problem "
SELECT
failed: ERR invalid DB index"; when I changed it into db1 ,db2,......,it's fine
here is my predis version
predis/predis v1.1.x-dev 0e17edb Flexible and feature-complete
and this is my redis version
redis-server redis_version:3.2.5
pls tell me how to fix this ,thx a lot
The text was updated successfully, but these errors were encountered: