Unable to pass IPv6 MySQL host
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, thank you for reporting this issue to us! We will get back to you once we have resolution for this issue.
Internal ticket: MAGETWO-31246
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']); }
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.