From 9d9fe16060a3db6293df93eadfae965d790022c2 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 14 Sep 2011 11:03:32 -0400 Subject: Added connection information note in documentation --- user_guide/database/connecting.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'user_guide/database') 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($config);

For information on each of these values please see the configuration page.

+

Note: For the PDO driver, $config['hostname'] should look like this: 'mysql:host=localhost'

+

Or you can submit your database values as a Data Source Name. DSNs must have this prototype:

$dsn = 'dbdriver://username:password@hostname/database';
-- cgit v1.2.3-24-g4f1b