At 8:23 +0800 2/10/03, Jun Beldad wrote:
Hi,

I'm running two versions of mysql (with different ports) on a server. How do I
make DBI connect to the instance of mysql with the non-default-port.

TIA.
Specify the port number in your DSN. Also, if the server is on the local
host, specify the host name as "127.0.0.1" or the host's actual name rather
than as "localhost". At least, do that if you're on Unix, for which connections
to "localhost" will use a socket file rather than TCP/IP and a port number.

Reply via email to