How to connect to MySQL with SSL connection I have Drupal 7.24 / PHP 5.3.27 and am using the PHP native MySQL drivers.  PHPinfo shows that SSL is supported. 

I can't seem to get Drupal to connect to MySQL with SSL.  Works fine without it. 
I did find a patch 726192-arbitrary-pdo-options-attributes.patch  that looked like it was committed back about 7.17.  However I did not see the patch in my 7.24 that I downloaded.  So I applied the patch.  Still doesn't work.   There are a lot of bad examples of configurations in others questioning how to connect.   My best guess is this configuration.  But again it does not work.  I have test these SSL certs and connection Navicat and it does connect fine

Any suggestions on what to try or where to look??

$databases = array (
  'default' =&gt; 
   array (
    'default' =&gt; 
     array (
       'database' =&gt; 'drupaldb',
       'username' =&gt; 'drupaluser',
       'password' =&gt; 'password',
       'host' =&gt; '192.168.10.100',
       'port' =&gt; '3306',
       'driver' =&gt; 'mysql',
       'prefix' =&gt; '',
       'pdo attributes' =&gt; array(
           PDO::MYSQL_ATTR_SSL_KEY =&gt; '/path/client-key.pem',
           PDO::MYSQL_ATTR_SSL_CERT =&gt; '/path/client-cert.pem',
           PDO::MYSQL_ATTR_SSL_CA =&gt; '/path/ca-cert.pem',
        ),
     ),
   ),
);
Finally got it figured out. It's "driver options", not "PDO attributes".

  $databases = array (
    'default' =&gt; 
     array (
       'default' =&gt; 
        array (
          'database' =&gt; 'drupaldb',
          'username' =&gt; 'drupaluser',
          'password' =&gt; 'password',
          'host' =&gt; '192.168.10.100',
          'port' =&gt; '3306',
          'driver' =&gt; 'mysql',
          'prefix' =&gt; '',
          'driver options' =&gt; array(
              PDO::MYSQL_ATTR_SSL_KEY =&gt; '/path/client-key.pem',
              PDO::MYSQL_ATTR_SSL_CERT =&gt; '/path/client-cert.pem',
              PDO::MYSQL_ATTR_SSL_CA =&gt; '/path/ca-cert.pem',
           ),
       ),
    ),
  );