mysql_connect(localhost:3306, mysql_user, mysql_password);
- Original Message -
From: Webmaster [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 5:57 PM
Subject: using php to connect to a 2nd mySQL server
Hello all,
I am new to this list ... and hope to find
the port is part of the server parameter in the connection eg port 3307
mysql_connect ( localhost:3307 , username , password )
http://www.php.net/manual/en/function.mysql-connect.php
has the details
HTH
Peter
---
Excellence in internet and open
Hello Wolfgang,
[..]
My question now is this: How can I tell a php script to not use the
standard mySQL server that exists on this server computer, but to use
the 2nd mySQL server that runs on the different port number ?
Currently I use info set up in variables like this:
# MySQL database