John Davidson

php - Can't Connect to Heroku Postgres DB After Heroku Maintenance

0 comments
Message:


I've been using Heroku's Postgres databases for years now, and connecting from my MAMP localhost on Mac with no issue.


However, my databases have recently been upgraded by Heroku maintenance, and now when using MAMP localhost I am getting the following PHP PDO error:


"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 have verified I am using TLS 1.3 locally, but I am still getting this error.


How can I locally connect to my remote Heroku Postgres database from my Mac running PHP?


I have been researching this issue extensively and have been unable to unblock myself.


Thanks in advance to anybody who can help.



My Answer:
you please provide more context or clarify your question?

Rate this post

4 of 5 based on 9896 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us