From 2d2721d2d9414eac629e9247ca5991a60c6dc4f6 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 19 Jul 2013 23:01:16 -0400 Subject: [PATCH] Update docs for MySQL MySQL supports a few non-standard options. Document them. --- lib/Cake/Model/Datasource/Database/Mysql.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Cake/Model/Datasource/Database/Mysql.php b/lib/Cake/Model/Datasource/Database/Mysql.php index 6ee8401f7ca..1115b24e713 100644 --- a/lib/Cake/Model/Datasource/Database/Mysql.php +++ b/lib/Cake/Model/Datasource/Database/Mysql.php @@ -130,6 +130,15 @@ class Mysql extends DboSource { /** * Connects to the database using options in the given configuration array. * + * MySQL supports a few additional options that other drivers do not: + * + * - `unix_socket` Set to the path of the MySQL sock file. Can be used in place + * of host + port. + * - `ssl_key` SSL key file for connecting via SSL. Must be combined with `ssl_cert`. + * - `ssl_cert` The SSL certificate to use when connecting via SSL. Must be + * combined with `ssl_key`. + * - `ssl_ca` The certificate authority for SSL connections. + * * @return boolean True if the database could be connected, else false * @throws MissingConnectionException */