CodeIgniter Forums
Database ipv6 support - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Database ipv6 support (/showthread.php?tid=62014)



Database ipv6 support - markbratanov - 06-04-2015

Was wondering if codeigniter 3.0 currently supports ipv6 for database connection, specifically mysqli? I know it utilizes the mysqli driver and I've been trying to figure out if that driver is ipv6 compatible and it seems so. I've checked the server's php configurations and ipv6 is enabled.

When I configure the ipv6 address as the hostname for my current CI3 project it breaks. I've tried brackets around the address as well. Any ideas?

Error:

Code:
A PHP Error was encountered

Severity: Warning

Message: mysqli::real_connect(): (HY000/2002): Network is unreachable

Filename: mysqli/mysqli_driver.php

Line Number: 140

Backtrace:...