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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcik-dorota committed Nov 27, 2023
1 parent af982ae commit 464e449
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 464e449

Please sign in to comment.