Article:
 |
|
Using MySQL from PHP
|
| Subject: |
|
JDBC Connecting to mySQL server at Unix |
| Date: |
|
2004-02-25 08:37:06 |
| From: |
|
weckenmc
|
|
|
|
I just read your article on PHP connect to mySQL database.
// Connect to the server at hostname using the specified port
$server = 'hostname:port'
I need to connect from my Windows app w/JDBC to the mySQL server on a Unix platform across the net. In your connect statement above, how do I get the port value?
Any insights is very much appreciated!
Thanks,
Cristl
|
Showing messages 1 through 1 of 1.
-
JDBC Connecting to mySQL server at Unix
2004-05-07 17:11:16
Seigo
[View]
So you can use 'hostname:3306'.