search

Home  >  Q&A  >  body text

php - Yii framework cannot connect to Redis (Database Exception – yii\db\Exception)

Confirmed:

  1. Redis-server has been started correctly

  2. The php-redis extension is available, and it can ping without the demo written by Yii

  3. The configured variables are correct, hostname=>127.0.0.1, port=>6379

< /p>

What other possibilities are there?

仅有的幸福仅有的幸福2807 days ago708

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-16 13:02:40

    The most likely problem is the account password. You can print out the account password in Connection.php and have a look

    reply
    0
  • Cancelreply