ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:database:mysql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:database:mysql [2026/01/30 03:44] – [Connecting To A Microsoft Azure MySQL Instance] mnewnhamv5:database:mysql [2026/01/30 03:48] (current) – [Connecting With SSL] mnewnham
Line 54: Line 54:
 </code> </code>
 ==== Connecting With SSL ==== ==== Connecting With SSL ====
-From ADOdb version 5.21, you can make an SSL connection to MySQL in the following way:+From ADOdb version 5.23.10, you make an SSL connection to MySQL in the following way:
  
 <code php> <code php>
Line 64: Line 64:
 * Set the SSL parameters * Set the SSL parameters
 */ */
-$db->ssl_key    = "key.pem"; +$db->setConnectionParameter('ssl',
-$db->ssl_cert   = "cert.pem" +    'key' ="key.pem", 
-$db->ssl_ca     = "cacert.pem"; +    'cert' ="cert.pem", 
-$db->ssl_capath = null +    'ca' ="cacert.pem", 
-$db->ssl_cipher = null; +    'capath' =null 
 +    'cipher' =null 
 +    ] 
 +);
  
 /* /*
v5/database/mysql.txt · Last modified: by mnewnham