Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-7

Support IPv6 in JDBC URL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • 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)

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.