summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--library/WT/DB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/DB.php b/library/WT/DB.php
index c19e8c7553..1ee6f494b1 100644
--- a/library/WT/DB.php
+++ b/library/WT/DB.php
@@ -67,7 +67,7 @@ class WT_DB {
// Create the underlying PDO object
self::$pdo=new PDO(
(substr($DBHOST, 0, 1)=='/' ?
- "mysql:unix_socket={$DBHOST}" :
+ "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" :
"mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}"
),
$DBUSER, $DBPASS,