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

MariaDB init script fails to start (missing dependency on MariaDB-client in server RPM)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.36, 10.0.10
    • Fix Version/s: 5.5.37, 10.0.11
    • Component/s: None
    • Environment:
      Centos 6.5, x86_64

      Description

      I installed "MariaDB-server" on CentOS using offical repos. "service mysql start" took an awful lot of time, resulting in a time out. Investigation revealed that the function wait_for_ready() defined in /etc/init.d/mysql was using 'mysqladmin ping' to check the status of the server. Ironically, mysqladmin wasn't marked as dependency of 'MariaDB-server' package and hence wasn't installed. Installing "MariaDB-client" did the trick.

      To sum up, MariaDB-server uses a tool which is provided by MariaDB-client, but doesn't request it(as dependency) during installation resulting in service management.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            Indeed, while it looks expensive to install the whole package for a single ping that mysqladmin does upon server startup via the init script, it has to be done anyway, otherwise the script never reports success (even though the server starts, of course).

            Show
            elenst Elena Stepanova added a comment - Indeed, while it looks expensive to install the whole package for a single ping that mysqladmin does upon server startup via the init script, it has to be done anyway, otherwise the script never reports success (even though the server starts, of course).

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                shredder12 Shashank Sahni
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes
                  20m