We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91cb4d4 commit 292dadfCopy full SHA for 292dadf
lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php
@@ -432,6 +432,12 @@ private function avoidReusingParentProcessConnection()
432
$this->parentConnections[] = $this->_connection;
433
$this->_connection = null;
434
$this->pid = getmypid();
435
+
436
+ // Reset config host to avoid issue with multiple connections
437
+ if (!empty($this->_config['port'])) {
438
+ $this->_config['host'] = implode(':', [$this->_config['host'], $this->_config['port']]);
439
+ unset($this->_config['port']);
440
+ }
441
}
442
443
0 commit comments