v5:database:mysql
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:database:mysql [2025/06/01 13:21] – Remove square brackets in tags dregad | v5:database:mysql [2026/01/30 03:48] (current) – [Connecting With SSL] mnewnham | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| </ | </ | ||
| ==== 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 | + | $db->setConnectionParameter(' |
| - | $db-> | + | ' |
| - | $db-> | + | ' |
| - | $db-> | + | ' |
| - | $db-> | + | ' |
| + | ' | ||
| + | ] | ||
| + | ); | ||
| /* | /* | ||
| Line 88: | Line 91: | ||
| $password = ' | $password = ' | ||
| - | $db->ssl_ca | + | $db->setConnectionParameter( |
| + | ' | ||
| + | [ | ||
| + | | ||
| + | ] | ||
| + | ); | ||
| + | $db-> | ||
| + | ' | ||
| + | ); | ||
| + | |||
| /* | /* | ||
| * Open the connection | * Open the connection | ||
v5/database/mysql.1748776871.txt.gz · Last modified: by dregad
