Permalink
Browse files

Update docs for MySQL

MySQL supports a few non-standard options. Document them.
  • Loading branch information...
1 parent 8913f4f commit 2d2721d2d9414eac629e9247ca5991a60c6dc4f6 @markstory markstory committed Jul 20, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 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
*/

0 comments on commit 2d2721d

Please sign in to comment.