PHP using Phpredis link Redis error

Source: Internet
Author: User
Title, using in projects phpredisLink redisAnd occasionally reported the following error:

PHP Fatal error:  Uncaught exception 'RedisException' with message 'Failed to AUTH connection' in [no active file]:0Stack trace:#0 {main}  thrown in [no active file] on line 0```
    1. checkThe configuration information for the project is correct, and this error message appears occasionally

    2. Working with processes in projects redissession

    3. In github the issues found that someone has encountered a similar problem, but also did not give the reason for the emergence and how to solve the portal GitHub

Do you have a similar problem in your project, or do you use predis this extension directly?

Reply content:

Title, the use of links in the project phpredis redis , occasionally reported the following error:

PHP Fatal error:  Uncaught exception 'RedisException' with message 'Failed to AUTH connection' in [no active file]:0Stack trace:#0 {main}  thrown in [no active file] on line 0```
    1. checkThe configuration information for the project is correct, and this error message appears occasionally

    2. Working with processes in projects redissession

    3. In github the issues found that someone has encountered a similar problem, but also did not give the reason for the emergence and how to solve the portal GitHub

Do you have a similar problem in your project, or do you use predis this extension directly?

Pure Spit groove, Phpredis This expansion is getting egg ache ....

See if the error is an authorization-related error, check whether Redis has a password, if it is a cluster deployment, whether the environment is inconsistent

$client = new Predis\Client(array(    'scheme'   => 'tcp',    'host'     => '127.0.0.1',    'port'     => 6379,    'database' => 15,    'password' => '密码'));

The authentication of the prompt failed?

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.