diff --git a/code/products/mysql/connect.php b/code/products/mysql/connect.php index d3746a6bf6..eb07dc51f1 100644 --- a/code/products/mysql/connect.php +++ b/code/products/mysql/connect.php @@ -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"]); diff --git a/docs/products/mysql/howto/connect-with-php.rst b/docs/products/mysql/howto/connect-with-php.rst index 06c59e18cd..9e39157066 100644 --- a/docs/products/mysql/howto/connect-with-php.rst +++ b/docs/products/mysql/howto/connect-with-php.rst @@ -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 `_ (most installations have this already).