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!

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • JDBC Connecting to mySQL server at Unix
    2004-05-07 17:11:16  Seigo [View]

    The default value of mysql port is 3306.
    So you can use 'hostname:3306'.