]> git.mjollnir.org Git - moodle.git/commitdiff
Some docs for PostgreSQL sockets users (see bug #749)
authormoodler <moodler>
Sun, 14 Sep 2003 17:50:07 +0000 (17:50 +0000)
committermoodler <moodler>
Sun, 14 Sep 2003 17:50:07 +0000 (17:50 +0000)
config-dist.php

index 70081967f92c50bdbdd555196ca7b53b16a18831..9fd970ea2afb86d00b78f0ee9e7f93ed5408aa42 100644 (file)
@@ -42,6 +42,11 @@ unset($CFG);  // Ignore this line
 //\r
 //   postgres7  - the prefix is REQUIRED, regardless of whether the      //\r
 //                database already contains tables.                      //\r
+//                                                                       //\r
+// A special case exists when using PostgreSQL databases via sockets.    //\r
+// Define dbhost as follows, leaving dbname, dbuser, dbpass BLANK!:      //\r
+//    $CFG->dbhost = " user='muser' password='mpass' dbname='mdata'";    //\r
+//                \r
 \r
 $CFG->dbtype    = 'mysql';       // mysql or postgres7 (for now)\r
 $CFG->dbhost    = 'localhost';   // eg localhost or db.isp.com \r