Hi,
I'm trying to connect to a mysql-Server using PHP's mysql-function
mysql_connect. The host on which the mysql-server is running is not the
same as the host apache and php are running on. The two computers are
connected in an IPv6-network.
No matter if I give the hostname (defined in /etc/hosts), the
IPv6-address ("fec0::4") or the IPv6-address in square brackets
("[fec0::4]") the function mysql_connect always prints "Unknown
MYSQL-Server [servername]". Is it because of IPv6? Is PHP's mysql-API
not capable of connecting via an IPv6-network? Unfortunately I didn't
find anything about it in the documentation.
I'm using PHP version 4.3.4. In case this version cannot handle
IPv6-addresses, does anybody know whether PHP 5 beta can?
Thank you for your help!
Torsten