Replies: 2 comments
-
laravel 10 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, PDO uses libpq, and SNI support is included in libpq in v14 or higher. Try checking your libpq version and upgrading if it's lower than 14. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to connect to Neon from PHP8 with PDO (https://www.php.net/manual/en/ref.pdo-pgsql.php), but I am facing SNI issues, that I can't resolve. It's purely PHP related issue, as I've managed to connect to NeonDB from Go without problems.
My initial DSN:
returns SNI error:
Appending:
;options=project%%3Dproject-name-022114
(bear in mind second % escape, as I am usingsprintf
) doesn't seem to work. It doesn't seem thatoptions
is supported in the PHP DSN: https://www.php.net/manual/en/ref.pdo-pgsql.connection.phpPassing the
options
to PDO constructor doesn't seem to work either:Not entirely sure what would be the best way to overcome SNI issues using PHP PDO.
In principle I could follow approach D): https://neon.tech/docs/connect/connectivity-issues#d-specify-the-endpoint-id-in-the-password-field
however I don't feel comfortable downgrading password hashing method.
Do you have any experience with PHP and have an idea how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions