Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-21465

Add --bind-address parameter for outgoing client connections

Details

    Description

      Client library has the MYSQL_OPT_BIND option for this already, so the feature only needs to be exposed via command line option handling.

      MySQLs client binaries have this option since 5.6, and had it even earlier in the MySQL Cluster releases.

      mysql-5.6.40 > bin/mysql --help | grep bind
        --bind-address=name IP address to bind to.
      bind-address                      (No default value)
      

      Background: when a client system has multiple interfaces / IP addresses, the OS kernel can pick whatever interface it prefers to connect to the server. Especially if multiple client IPs are in the same network, this usually means: pick the first one it has in the interface list.

      I originally implemented the patch for this back when still working for MySQL AB, as back then my Laptop would always choose to do replication with my desktop over slow/shared WLAN, even when having a cable plugged in that connected it to the desktop directly, as the WLAN device was somehow always initialized first ...

      Attachments

        Issue Links

          Activity

            hholzgra Hartmut Holzgraefe created issue -
            hholzgra Hartmut Holzgraefe made changes -
            Field Original Value New Value
            julien.fritsch Julien Fritsch made changes -
            Fixing Priority 250
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 102966 ] MariaDB v4 [ 131215 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Labels beginner-friendly
            serg Sergei Golubchik made changes -
            Assignee Daniel Black [ danblack ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Labels beginner-friendly Compatibility beginner-friendly upstream-5.6
            danblack Daniel Black made changes -
            Fix Version/s 11.4 [ 29301 ]
            danblack Daniel Black made changes -
            issue.field.resolutiondate 2023-11-17 08:05:22.0 2023-11-17 08:05:22.419
            danblack Daniel Black made changes -
            Fix Version/s 11.4.1 [ 29523 ]
            Fix Version/s 11.4 [ 29301 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 11.4 [ 29301 ]
            Fix Version/s 11.4.1 [ 29523 ]
            danblack Daniel Black made changes -
            Status Stalled [ 10000 ] In Testing [ 10301 ]
            danblack Daniel Black made changes -
            Assignee Daniel Black [ danblack ]
            serg Sergei Golubchik made changes -
            Assignee Elena Stepanova [ elenst ]
            elenst Elena Stepanova made changes -
            Assignee Elena Stepanova [ elenst ] Ramesh Sivaraman [ JIRAUSER48189 ]
            serg Sergei Golubchik made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Issue Type Task [ 3 ] New Feature [ 2 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 11.5 [ 29506 ]
            Fix Version/s 11.4 [ 29301 ]
            ramesh Ramesh Sivaraman made changes -
            Assignee Ramesh Sivaraman [ JIRAUSER48189 ] Daniel Black [ danblack ]
            Status In Testing [ 10301 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 11.6 [ 29515 ]
            Fix Version/s 11.5 [ 29506 ]
            danblack Daniel Black made changes -
            Fix Version/s 11.5 [ 29506 ]
            Fix Version/s 11.6 [ 29515 ]
            danblack Daniel Black made changes -
            Fix Version/s 11.6 [ 29515 ]
            Fix Version/s 11.5 [ 29506 ]
            danblack Daniel Black made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            JIraAutomate JiraAutomate made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 11.7 [ 29815 ]
            Fix Version/s 11.6 [ 29515 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 11.8 [ 29921 ]
            Fix Version/s 11.7 [ 29815 ]
            serg Sergei Golubchik made changes -
            Priority Critical [ 2 ] Minor [ 4 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 11.8 [ 29921 ]
            vlad.radu Vlad Radu made changes -
            Labels Compatibility beginner-friendly upstream-5.6 Compatibility beginner-friendly foundation upstream-5.6
            danblack Daniel Black made changes -
            Rank Ranked higher
            ParadoxV5 Jimmy Hú made changes -

            People

              danblack Daniel Black
              hholzgra Hartmut Holzgraefe
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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