summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-28 20:09:30 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-28 20:09:30 +1000
commitc31e374a71a5109b136327b89b51a34f9bf8809f (patch)
tree015f13bcec66ebbbb76d2009e708bc4b91935cd4 /inc/config.php
parent10d59e949aece5d4dd5c1b54d9b26300f792a3db (diff)
Allow Unix sockets for database connection
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/inc/config.php b/inc/config.php
index b6c510a7..5d572010 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -77,16 +77,18 @@
// Database driver (http://www.php.net/manual/en/pdo.drivers.php)
// Only MySQL is supported by Tinyboard at the moment, sorry.
$config['db']['type'] = 'mysql';
- // Hostname or IP address
+ // Hostname, IP address or Unix socket (prefixed with ":")
$config['db']['server'] = 'localhost';
+ // Example: Unix socket
+ // $config['db']['server'] = ':/tmp/mysql.sock';
// Login
$config['db']['user'] = '';
$config['db']['password'] = '';
// Tinyboard database
$config['db']['database'] = '';
- // Table prefix
+ // Table prefix (optional)
$config['db']['prefix'] = '';
- // Use a persistent connection (experimental)
+ // Use a persistent connection (experimental; benefits unknown)
$config['db']['persistent'] = false;
// Anything more to add to the DSN string (eg. port=xxx;foo=bar)
$config['db']['dsn'] = '';