Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2297 from aiven/dorota-mysql-fix-connect-via-php-…
Browse files Browse the repository at this point in the history
…ca-file-paths

mysql: mysql-fix-connect-via-php-ca-file-paths
  • Loading branch information
wojcik-dorota authored Nov 27, 2023
2 parents af982ae + 464e449 commit c2c4576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/products/mysql/connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$conn .= "host=" . $fields["host"];
$conn .= ";port=" . $fields["port"];;
$conn .= ";dbname=defaultdb";
$conn .= ";sslmode=verify-ca;sslrootcert='D:/absolute/path/to/ssl/certs/ca.pem";
$conn .= ";sslmode=verify-ca;sslrootcert='D:/absolute/path/to/ssl/certs/ca.pem'";

try {
$db = new PDO($conn, $fields["user"], $fields["pass"]);
Expand Down
2 changes: 1 addition & 1 deletion docs/products/mysql/howto/connect-with-php.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Pre-requisites

.. code-block:: bash
$conn .= ";sslmode=verify-ca;sslrootcert='D:/absolute/path/to/ssl/certs/ca.pem
$conn .= ";sslmode=verify-ca;sslrootcert='D:/absolute/path/to/ssl/certs/ca.pem'"
.. note::
Your PHP installation needs to include the `MySQL functions <https://www.php.net/manual/en/ref.pdo-pgsql.php>`_ (most installations have this already).
Expand Down

0 comments on commit c2c4576

Please sign in to comment.