Re: accessing mysql on non default port - windows
| From: | Jason Wong | Date: | Sat, 05 Feb 2005 23:37:13 +0000 |
| Subject: | Re: accessing mysql on non default port - windows | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38477@lists.php.net to get a copy of this message | ||
On Sunday 06 February 2005 04:58, Jeff wrote:
> Hi. I need to access mysql from windows to *nix on both the default
> port of 3306 and a secondary port of 3307. php.ini states that win32
> will only pay attention to MYSQL_PORT.
Just specify the port you want to use in mysql_connect().
> Is there a way to change the
> value of that constant without compiling my own version of php on
> win32.
I think you're misunderstanding what those comments are saying. If you
don't specify a port in mysql_connect() then PHP will try to use what is
defined by mysql.default_port in php.ini. If mysql.default_port is not
defined *then* it will start loking at other places (as detailed in the
comments).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
New Year Resolution: Ignore top posted posts