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.
2 parents 1c2ed4d + f050273 commit e6ad856Copy full SHA for e6ad856
lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php
@@ -439,6 +439,12 @@ private function avoidReusingParentProcessConnection()
439
$this->parentConnections[] = $this->_connection;
440
$this->_connection = null;
441
$this->pid = getmypid();
442
+
443
+ // Reset config host to avoid issue with multiple connections
444
+ if (!empty($this->_config['port']) && strpos($this->_config['host'], ':') === false) {
445
+ $this->_config['host'] = implode(':', [$this->_config['host'], $this->_config['port']]);
446
+ unset($this->_config['port']);
447
+ }
448
}
449
450
0 commit comments