magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Unable to pass IPv6 MySQL host

Open joelvardy opened this issue 12 years ago • 4 comments

I am unable to specify an IPv6 address as the database hostname with the following command line arguments:

--db_host=2a01:7e00::xxxx:xxxx:xxxx:xxxx
--db_host="2a01:7e00::xxxx:xxxx:xxxx:xxxx"

Error received is:

Zend_Db_Adapter_Exception
 SQLSTATE[HY000] [2005] Unknown MySQL server host '2a01' (2)

An IPv4 address works as expected.

This was also an issue in Magento 1.x

joelvardy avatar Nov 28 '14 14:11 joelvardy

@joelvardy, thank you for reporting this issue to us! We will get back to you once we have resolution for this issue.

verklov avatar Dec 01 '14 17:12 verklov

Internal ticket: MAGETWO-31246

vpelipenko avatar Jan 29 '15 13:01 vpelipenko

Comment from @buskamuza :

Here is the problem - lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php:314

} else if (strpos($this->_config['host'], ':') !== false) { list($this->_config['host'], $this->_config['port']) = explode(':', $this->_config['host']); }

ilol avatar Mar 02 '15 15:03 ilol

Thank you for your submission.

We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues.

Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here).

We are closing this GitHub ticket and have moved your request to the new forum.

piotrekkaminski avatar Aug 30 '16 20:08 piotrekkaminski