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

mysql init script should accept arguments

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.2, 5.5.30, 5.5.29-galera
    • Fix Version/s: 10.0.4, 5.5.32
    • Component/s: None
    • Labels:
      None
    • Environment:
      Debian, Ubuntu

      Description

      The /etc/init.d/mysql script does not accept any arguments, even though the "service" tool on those platforms does accept arguments/"OPTIONS" these days. This is particularly problematic in the case of Galera, for example, where you may occasionally need to pass --wsrep-cluster-address=gcomm:// to bootstrap a cluster.

      This issue is very easily resolved by replacing this line:

                  /usr/bin/mysqld_safe > /dev/null 2>&1 &

      with this one:

                  /usr/bin/mysqld_safe "${@:2}" > /dev/null 2>&1 &

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                kolbe Kolbe Kegel (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: