Unable to connect to Heroku Postgres DB after Heroku maintenance
P粉148434742
P粉148434742 2024-03-28 23:36:58
0
1
345

I've been using Heroku's Postgres database for years and have had no issues connecting from MAMP localhost on my Mac.

However, my database has been recently upgraded via Heroku maintenance and I now get the following PHP PDO error when using MAMP localhost:

"SQLSTATE[08006] [7] SSL error: tlsv1 alert protocol version"

From what I understand, this is because Heroku now requires TLS version 1.2 or higher to connect to Postgres. I've verified that I'm using TLS 1.3 locally, but I'm still getting this error.

How to connect to a remote Heroku Postgres database locally from a Mac running PHP?

I've been researching this issue extensively but can't unlock it myself.

Thanks in advance to anyone who can help.

P粉148434742
P粉148434742

reply all(1)
P粉115840076

In this case I ended up providing a solution for others. I ended up updating the version of MAMP I was running on my Mac from MAMP 5 to MAMP 6, which included the correct versions of OpenSSL and libpq. I can connect to the updated remote Postgres database on Heroku again. Thanks to user Ph00 Bar in the Postgres Slack group!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template