cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to pass IPv6 MySQL host

0 Kudos

Unable to pass IPv6 MySQL host

Feature request from joelvardy, posted on GitHub Nov 28, 2014

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

4 Comments
apiuser
New Member
Status changed to: Investigating
 
apiuser
New Member

Comment from verklov, posted on GitHub Dec 01, 2014

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

apiuser
New Member

Comment from vpelipenko, posted on GitHub Jan 29, 2015

Internal ticket: MAGETWO-31246

apiuser
New Member

Comment from ilol, posted on GitHub Mar 02, 2015

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']); }