Breaking News
Home / Java / Java FAQ / What is JDBC URL format for MySQL Connector/J?

What is JDBC URL format for MySQL Connector/J?

Answer:

The JDBC URL format for MySQL Connector/J is as follows, with items in square brackets ([, ]) being optional:

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

If the host name is not specified, it defaults to 127.0.0.1. If the port is not specified, it defaults to 3306, the default port number for MySQL servers.

[pb_builder]

Check Also

When is OCAJP Java certification going live?

After completing the BETA phase of testing last year, the Oracle’s new OCAJP Java certification, …

Leave a Reply