summaryrefslogtreecommitdiffstats
path: root/user_guide/database/connecting.html
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-10-04 18:24:10 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-04 18:24:10 +0200
commit12a1747148175f9cfeb01f99ede42d5039f667e5 (patch)
tree4ddbfbb8871c0ab02674da66086b20da8377e247 /user_guide/database/connecting.html
parent8706a5dd93d7740c30660727b99b554e00b0565b (diff)
parent3fdb613ee7c1968435edb81dcb9a59f42be6de6e (diff)
Merge pull request #282 from timw4mail/develop
PDO driver for Database class.
Diffstat (limited to 'user_guide/database/connecting.html')
-rw-r--r--user_guide/database/connecting.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/user_guide/database/connecting.html b/user_guide/database/connecting.html
index 309f2bc1a..b18088132 100644
--- a/user_guide/database/connecting.html
+++ b/user_guide/database/connecting.html
@@ -121,6 +121,8 @@ $this->load->database(<samp>$config</samp>);</code>
<p>For information on each of these values please see the <a href="configuration.html">configuration page</a>.</p>
+<p class="important"><strong>Note:</strong> For the PDO driver, $config['hostname'] should look like this: 'mysql:host=localhost'</p>
+
<p>Or you can submit your database values as a Data Source Name. DSNs must have this prototype:</p>
<code>$dsn = 'dbdriver://username:password@hostname/database';<br />