Reputation: 175
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
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