View RSS Feed

Java Database

MySQL Connector/J Database URL

Rate this Entry
by , 03-10-2012 at 07:51 AM (1447 Views)
For MySQL Connector/J, the database connection URL syntax is given below:

jdbc:mysql://[host][,failoverhost...]
[:port]/[database]
[?propertyName1][=propertyValue1]
[&propertyName2][=propertyValue2]...

  • host: Port is hostís name & port no. of that computer which host database. Port and host default values are 3306 and 127.0.0.1 , if not specified,
  • database is database name to connect. Without default database connection is made, if not specified.
  • failover is standby database name (J supports failover/ MySQL Connector).
  • propertyName=propertyValue presents an ampersand-separated properties list. Such attributes make you able to instruct the MySQL Connector/J for performing certain tasks.

Submit "MySQL Connector/J Database URL" to Facebook Submit "MySQL Connector/J Database URL" to Digg Submit "MySQL Connector/J Database URL" to del.icio.us Submit "MySQL Connector/J Database URL" to StumbleUpon Submit "MySQL Connector/J Database URL" to Google

Updated 03-10-2012 at 07:53 AM by Java Database

Categories
JDBC

Comments