Req #70955 [Opn]: bind mysql client connection to specific ip

From: Date: Tue, 24 Nov 2015 05:49:24 +0000
Subject: Req #70955 [Opn]: bind mysql client connection to specific ip
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197389@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70955&edit=1 ID: 70955 Updated by: laruence@php.net Reported by: theultramage at gmail dot com Summary: bind mysql client connection to specific ip Status: Open Type: Feature/Change Request Package: MySQL related PHP Version: 5.6.15 -Assigned To: +Assigned To: mysql Block user comment: N Private report: N New Comment: it's better also have mysqlnd's supports, assign to mysql team , thanks Previous Comments: ------------------------------------------------------------------------ [2015-11-22 16:32:41] theultramage at gmail dot com Description: ------------ Libmysql documentation mentions that mysql_options(MYSQL_OPT_BIND, "hostname_or_ipaddress") exists since MySQL 5.6.1 (2011). This solves the problem of connecting from a host with multiple IPs, because otherwise the host's current default interface is used; this is decided by the operating system and it may change over time. MySQL server is especially sensitive to this since logins are tied to IP addresses. PHP's mysql, mysqli and pdo_mysql interfaces don't seem to expose this functionality. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70955&edit=1

« previous php.bugs (#197389) next »