summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2011-09-14 17:03:32 +0200
committerTimothy Warren <tim@timshomepage.net>2011-09-14 17:03:32 +0200
commit9d9fe16060a3db6293df93eadfae965d790022c2 (patch)
tree99dddb1a83f008ee4aade20bebc8389447d7f331
parent51b0e64dd8f5a8011e66ba3d68cc4ae603d4efbd (diff)
Added connection information note in documentation
-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 />