Skip to content

Commit e3fd257

Browse files
Update lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php
Co-authored-by: Abhinav Pathak <51681618+engcom-Hotel@users.noreply.github.com>
1 parent 292dadf commit e3fd257

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ private function avoidReusingParentProcessConnection()
434434
$this->pid = getmypid();
435435

436436
// Reset config host to avoid issue with multiple connections
437-
if (!empty($this->_config['port'])) {
437+
if (!empty($this->_config['port']) && strpos($this->_config['host'], ':') === false) {
438438
$this->_config['host'] = implode(':', [$this->_config['host'], $this->_config['port']]);
439439
unset($this->_config['port']);
440440
}

0 commit comments

Comments
 (0)