From 4c0983f899dfcef39dade56a5ed6022b3528a90c Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 12 Oct 2021 19:49:53 +0100 Subject: [PATCH] cherry-pick f8c8dcf52046b93017b4fbc7039d83905b673bfa so we can have $CONF[database_port] in v3.3.x --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index 3a15697f..acfe8589 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1583,7 +1583,7 @@ function db_connection_string() { if ($socket) { $dsn .= "unix_socket={$socket}"; } else { - $dsn .= "mysql:host={$CONF['database_host']}"; + $dsn .= "host={$CONF['database_host']}"; } if (isset($CONF['database_port'])) {