We've expanded our news coverage and improved our search! Visit news.oreilly.com for the latest or search for all things across O'Reilly!
advertisement

Article:
  Using MySQL from PHP
Subject:   JDBC Connecting to mySQL server at Unix
Date:   2004-05-07 17:11:16
From:   Seigo
Response to: JDBC Connecting to mySQL server at Unix

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