Re: accessing mysql on non default port - windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux