Winogronko
Winogronko

Reputation: 175

SQLSTATE[08006] [7] expected authentication request from server, but received _

I configured my application (laravel 5.3) with travis-ci to work with postgresql database, but I got error in matrix build:

SQLSTATE[08006] [7] expected authentication request from server, but received _

I tried to change pgsql version to 9.4, with no success.

When SSL Mode is set to "prefer", build throws:

SQLSTATE[08006] [7] received invalid response to SSL negotiation: _

On mysql driver works fine and build passes. Personally, I prefer postgresql rather than mysql, so I asking for help how to resolve this problem.

Thanks.

Upvotes: 4

Views: 20524

Answers (1)

bravik
bravik

Reputation: 460

Had the same error. In laravel config for Postgresql by default it hase port 3306, The correct one is 5432. Or check your system

Upvotes: 9

Related Questions