[CONJ-7] Support IPv6 in JDBC URL Created: 2013-01-06  Updated: 2013-01-10  Resolved: 2013-01-10

Status: Closed
Project: MariaDB Connector/J
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.0

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

IPv6 addresses do have colon ":" in them, which makes it non-trivial to use it is URL syntax, since URLs also use colons as delimiters.

In case of MySQL-compatible URLs,
jdbc:mysql://<host>[:<port>]

having <host> as IPv6 would make challenging to correctly parse the URL.

At first, we'll follow standardized procedure described in http://www.ietf.org/rfc/rfc2732.txt, which solves the problem putting IPv6 address inside square brackets. For MySQL URLs it would look like e.g

jdbc:mysql://[::1]:3307/ (IPv6 localhost and port 3307)


Generated at Thu Feb 08 03:12:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.